|
|
|
@ -30,13 +30,18 @@ |
|
|
|
# Import Python modules |
|
|
|
import argparse, sys, subprocess, uuid, time, os, glob |
|
|
|
|
|
|
|
from sharedfunctions import getfolderid, callrestapi |
|
|
|
from sharedfunctions import getfolderid, callrestapi,getapplicationproperties |
|
|
|
|
|
|
|
# get python version |
|
|
|
version=int(str(sys.version_info[0])) |
|
|
|
|
|
|
|
# CHANGE THIS VARIABLE IF YOUR CLI IS IN A DIFFERENT LOCATION |
|
|
|
clidir='/opt/sas/viya/home/bin/' |
|
|
|
# get cli location from properties |
|
|
|
propertylist=getapplicationproperties() |
|
|
|
|
|
|
|
clidir=propertylist["sascli.location"] |
|
|
|
cliexe=propertylist["sascli.executable"] |
|
|
|
|
|
|
|
cli_command=os.path.join(clidir,cliexe) |
|
|
|
|
|
|
|
# get input parameters |
|
|
|
parser = argparse.ArgumentParser(description="Export the complete Viya folder tree") |
|
|
|
|