diff 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
line wrap: on
line diff
--- a/micropita_prepare.py	Sat Apr 23 11:08:58 2016 -0400
+++ b/micropita_prepare.py	Thu Aug 11 00:18:52 2016 -0400
@@ -87,8 +87,8 @@
 ##################################################################################
 parser = read_params( sys.argv )
 results = parser.parse_args()
-root_dir = os.environ.get('micropita_SCRIPT_PATH')
-
+#root_dir = os.environ.get('micropita_SCRIPT_PATH')
+root_dir = root_dir = os.path.dirname(os.path.realpath(__file__))  #Find the current directory where the program resides  GW 20160810
 
 fname =  results.inputname
 input_file = open(fname,'rU')