Browse Source

added --output text

--output text will send the status of the import command to the command window.
master
Gerry Nelson 6 years ago
committed by GitHub
parent
commit
d5e0a334f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      importpackages.py

3
importpackages.py

@ -8,6 +8,7 @@
# #
# Change History # Change History
# #
# 12feb2020 added --output text to the import command so that status will show
# #
# Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. # Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# #
@ -73,7 +74,7 @@ if areyousure.upper() =='Y':
# get the packageid and import the package # get the packageid and import the package
packageid=package_data["id"] packageid=package_data["id"]
command=clidir+'sas-admin -q transfer import --id '+packageid command=clidir+'sas-admin --output text -q transfer import --id '+packageid
print(command) print(command)
subprocess.call(command, shell=True) subprocess.call(command, shell=True)

Loading…
Cancel
Save