comparison micropita_prepare.py @ 21:1923f2a7e737 draft

Uploaded
author george-weingart
date Thu, 11 Aug 2016 01:37:35 -0400
parents a40a7a8c28d2
children 01ed8a261f09
comparison
equal deleted inserted replaced
20:a2e1a3c2bf9a 21:1923f2a7e737
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') #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 = 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()