Mercurial > repos > george-weingart > micropita
comparison micropita_prepare.py @ 25:1a2f01b31cf3 draft
Updated micropita_prepare.py to use the correct directory
author | george-weingart |
---|---|
date | Thu, 11 Aug 2016 12:45:27 -0400 |
parents | 01ed8a261f09 |
children | 50a5e03dda85 |
comparison
equal
deleted
inserted
replaced
24:635acae1c059 | 25:1a2f01b31cf3 |
---|---|
86 # Main Program # | 86 # Main Program # |
87 ################################################################################## | 87 ################################################################################## |
88 parser = read_params( sys.argv ) | 88 parser = read_params( sys.argv ) |
89 results = parser.parse_args() | 89 results = parser.parse_args() |
90 #root_dir = os.environ.get('micropita_SCRIPT_PATH') #Using this | 90 #root_dir = os.environ.get('micropita_SCRIPT_PATH') #Using this |
91 root_dir = root_dir = os.path.dirname(os.path.realpath(__file__)) #Find the current directory where the program resides GW 20160810 | 91 root_dir = os.path.dirname(os.path.realpath(__file__)) #Find the current directory where the program resides GW 20160810 |
92 | 92 |
93 fname = results.inputname | 93 fname = results.inputname |
94 input_file = open(fname,'rU') | 94 input_file = open(fname,'rU') |
95 input_lines = input_file.readlines() | 95 input_lines = input_file.readlines() |
96 input_file.close() | 96 input_file.close() |