Mercurial > repos > george-weingart > micropita
diff micropita_prepare.py @ 3:b4cf8c75305b draft default tip
Pointing to the right root directory
author | george-weingart |
---|---|
date | Tue, 30 Aug 2016 13:10:34 -0400 |
parents | 2f4f6f08c8c4 |
children |
line wrap: on
line diff
--- a/micropita_prepare.py Tue Aug 30 13:03:02 2016 -0400 +++ b/micropita_prepare.py Tue Aug 30 13:10:34 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 = 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')