Changeset 3943 for palm/trunk/SCRIPTS
- Timestamp:
- May 2, 2019 9:50:41 AM (6 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palm_wd
r3567 r3943 84 84 #------------------------------------------------------------------------------! 85 85 86 import ConfigParser 86 import ConfigParser as configparser 87 87 import datetime 88 88 import os … … 97 97 # Check if configuration files exists and quit otherwise 98 98 input_config = ".wd.config" 99 for i in range(1,len(sys.argv)): 99 100 for i in range(0,len(sys.argv)): 101 out = sub.check_output("echo $PALM_BIN", shell=True, stderr=sub.STDOUT) 100 102 input_config = str(sys.argv[i]) 103 palm_bin = out.rstrip() 104 palm_dir = out.split("palm")[0] + "palm/" + out.split("palm")[1].split("/")[1] 101 105 102 106 config = configparser.RawConfigParser(allow_no_value=True) … … 108 112 print(os.path.isfile(input_config)) 109 113 114 print(input_config) 115 110 116 config.read(input_config) 111 117 118 config = ConfigParser.RawConfigParser() 119 config.read(palm_dir + '/.wd.config') 112 120 113 121 description = [] … … 115 123 username = [] 116 124 pycall = [] 125 117 126 118 127 for i in range(0,len(config.sections())):
Note: See TracChangeset
for help on using the changeset viewer.