comparison micropita_prepare.py @ 18:a40a7a8c28d2 draft

Modified the location of the root directory
author george-weingart
date Thu, 11 Aug 2016 00:18:52 -0400
parents a206555874ee
children 1923f2a7e737
comparison
equal deleted inserted replaced
17:1c68d3eb42fd 18:a40a7a8c28d2
85 ################################################################################## 85 ##################################################################################
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') 90 #root_dir = os.environ.get('micropita_SCRIPT_PATH')
91 91 root_dir = 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()