|
|
@ -25,8 +25,13 @@ |
|
|
import argparse, sys, subprocess, os, json |
|
|
import argparse, sys, subprocess, os, json |
|
|
from sharedfunctions import callrestapi |
|
|
from sharedfunctions import callrestapi |
|
|
|
|
|
|
|
|
# CHANGE THIS VARIABLE IF YOUR CLI IS IN A DIFFERENT LOCATION |
|
|
# get cli location from properties |
|
|
clidir='/opt/sas/viya/home/bin/' |
|
|
propertylist=getapplicationproperties() |
|
|
|
|
|
|
|
|
|
|
|
clidir=propertylist["sascli.location"] |
|
|
|
|
|
cliexe=propertylist["sascli.executable"] |
|
|
|
|
|
|
|
|
|
|
|
clicommand=os.path.join(clidir,cliexe) |
|
|
|
|
|
|
|
|
# get input parameters |
|
|
# get input parameters |
|
|
parser = argparse.ArgumentParser(description="Import JSON files from directory. All json files in directory will be imported.") |
|
|
parser = argparse.ArgumentParser(description="Import JSON files from directory. All json files in directory will be imported.") |
|
|
|