Changeset 4393 for palm/trunk/SCRIPTS/palm_gf
- Timestamp:
- Feb 4, 2020 9:24:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palm_gf
r2825 r4393 25 25 # ----------------- 26 26 # $Id$ 27 # Removed PALM_BIN dependency 28 # 29 # 2825 2018-02-20 21:48:27Z maronga 27 30 # Modified header 28 31 # … … 67 70 68 71 # Determine PALM directories 72 # Determine PALM directories 69 73 try: 70 devnull = open(os.devnull, 'w') 71 out = sub.check_output("echo $PALM_BIN", shell=True, stderr=sub.STDOUT) 72 palm_bin = out.rstrip() 73 palm_dir = out.split("palm")[0] + "palm/" + out.split("palm")[1].split("/")[1] 74 out = None 74 devnull = open(os.devnull, 'w') 75 palm_dir = os.getcwd() 76 palm_bin = palm_dir + '/trunk/SCRIPTS' 77 job_dir = palm_dir + '/JOBS' 78 user_dir = palm_dir + '/USER_CODE' 79 with open(palm_bin + '/palmrungui', 'r') as fh: 80 # file found 81 out = None 75 82 except: 76 print "Error. $PALM_BIN is not set."83 print ('Error. palm_gf probably called in wrong directory.') 77 84 raise SystemExit 78 85
Note: See TracChangeset
for help on using the changeset viewer.