From 2c3d708097b19447bf6f7ced092683d9956fbe14 Mon Sep 17 00:00:00 2001 From: Gerry Nelson Date: Tue, 24 Nov 2020 17:57:07 -0500 Subject: [PATCH] update import packages --- importpackages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importpackages.py b/importpackages.py index 6ce2a93..4b82fd4 100755 --- a/importpackages.py +++ b/importpackages.py @@ -67,7 +67,7 @@ if areyousure.upper() =='Y': if filename.lower().endswith('.json'): #upload the json package - command=clidir+'sas-admin transfer upload --file '+os.path.join(basedir,filename)+'> /tmp/packageid.json' + command=clicommand+' transfer upload --file '+os.path.join(basedir,filename)+'> /tmp/packageid.json' print(command) subprocess.call(command, shell=True) @@ -79,7 +79,7 @@ if areyousure.upper() =='Y': # get the packageid and import the package packageid=package_data["id"] - command=clidir+'sas-admin --output text -q transfer import --id '+packageid + command=clicommand+' --output text -q transfer import --id '+packageid print(command) subprocess.call(command, shell=True)