Skip to content

Commit 4b3c7b8

Browse files
author
zaihuaji
committed
display paths for missing command
1 parent ae463f7 commit 4b3c7b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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/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)