Skip to content

Commit e2118bc

Browse files
authored
Merge pull request #84 from NCAR/hua-work-common
Hua work common
2 parents f77cb85 + 4b3c7b8 commit e2118bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rda_python_common"
7-
version = "2.0.15"
7+
version = "2.0.16"
88
authors = [
99
{ name="Zaihua Ji", email="zji@ucar.edu" },
1010
]

src/rda_python_common/PgLOG.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ def set_common_pglog():
13051305
PGLOG['PGBATCH'] = ''
13061306

13071307
pgpath = PGLOG['HOMEBIN']
1308-
PGLOG['LOCHOME'] = "/ncar/rda/setuid"
1308+
PGLOG['LOCHOME'] = "/ncar/gdex/setuid"
13091309
if not op.isdir(PGLOG['LOCHOME']): PGLOG['LOCHOME'] = "/usr/local/decs"
13101310
pgpath += ":{}/bin".format(PGLOG['LOCHOME'])
13111311
locpath = "{}/bin/{}".format(PGLOG['DSSHOME'], PGLOG['HOSTTYPE'])

src/rda_python_common/pg_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def valid_command(self, cmd, logact = 0):
857857
if cmd not in self.COMMANDS:
858858
buf = shutil.which(cmd)
859859
if buf is None:
860-
if logact: self.pglog(cmd + ": executable command not found", logact)
860+
if logact: self.pglog("{}: executable command not found in\n{}".format(cmd, os.environ.get("PATH")), logact)
861861
buf = ''
862862
elif option:
863863
buf += option

0 commit comments

Comments
 (0)