Ignore:
Timestamp:
Feb 4, 2020 9:24:48 PM (20 months ago)
Author:
maronga
Message:

removed PALM_BIN dependencies in GUI tools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_gf

    r2825 r4393  
    2525# -----------------
    2626# $Id$
     27# Removed PALM_BIN dependency
     28#
     29# 2825 2018-02-20 21:48:27Z maronga
    2730# Modified header
    2831#
     
    6770
    6871# Determine PALM directories
     72# Determine PALM directories
    6973try:
    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
    7582except:   
    76    print "Error. $PALM_BIN is not set."
     83   print ('Error. palm_gf probably called in wrong directory.')
    7784   raise SystemExit
    7885
Note: See TracChangeset for help on using the changeset viewer.