changeset 18:a40a7a8c28d2 draft

Modified the location of the root directory
author george-weingart
date Thu, 11 Aug 2016 00:18:52 -0400
parents 1c68d3eb42fd
children 656e80be827a
files micropita_prepare.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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')