Skip to content

Commit 08684c0

Browse files
committed
Fix: main: Set PATH environment first
Otherwise, non-interactive commands like `crm configure property` will not produce completion results.
1 parent cca2082 commit 08684c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crmsh/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ def profile_run(context, user_args):
345345

346346
def run():
347347
try:
348+
envsetup()
348349
if len(sys.argv) >= 2 and sys.argv[1] == '--compgen':
349350
compgen()
350351
return 0
351-
envsetup()
352352
userdir.mv_user_files()
353353

354354
ui = ui_root.Root()

0 commit comments

Comments
 (0)