Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rda_python_common"
version = "1.0.13"
version = "1.0.14"
authors = [
{ name="Zaihua Ji", email="[email protected]" },
]
Expand Down
10 changes: 9 additions & 1 deletion src/rda_python_common/PgLOG.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,13 @@ def pgtrim(line, rmcmt = 1):

return line

#
# set PGLOG['PUSGDIR'] from the program file with full path
#
def set_help_path(progfile):

PGLOG['PUSGDIR'] = op.dirname(op.abspath(progfile))

#
# Function: show_usage(progname: Perl program name to get file "progname.usg")
#
Expand All @@ -549,7 +556,8 @@ def pgtrim(line, rmcmt = 1):
#
def show_usage(progname, opts = None):

usgname = PGLOG['PUSGDIR'] + '/' + progname + '.usg'
usgname = join_paths(PGLOG['PUSGDIR'], progname + '.usg')

if opts:
# show usage for individual option of dsarch
for opt in opts:
Expand Down