Skip to content

Commit 60ae110

Browse files
author
Colin Helms
committed
fix for gmatautomation project issues #4 and #5.
1 parent c9cb4ef commit 60ae110

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/gmatautomation/modelgen/gmatlocator.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ def __init__(self,**args):
3636
logging.debug('Instance of class GMAT_Particulars constructed.')
3737
super().__init__(**args)
3838

39-
self.p_gmat = Path(os.getenv('LOCALAPPDATA'))/'GMAT'
39+
#self.p_gmat = Path(os.getenv('LOCALAPPDATA'))/'GMAT'
40+
self.p_gmat = Path(os.getenv('LOCALAPPDATA'))
41+
# Fix for gmatautomation project issue #4.
4042
self.executable_path = None
4143
self.startup_file_path = None
4244
self.output_path = None

src/gmatautomation/reportgen/CleanUpReports.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ def extend(self, rpt):
149149

150150
""" Batch Processing of .txt Report Files. """
151151
msg = 'Open ReportFile.batch file naming the GMAT Report Files to be processed.'
152-
fbatch = QFileDialog().getOpenFileName(None, msg, o_path, filter='Batch files(*.batch)')
152+
#fbatch = QFileDialog().getOpenFileName(None, msg, o_path, filter='Batch files(*.batch)')
153+
fbatch = QFileDialog().getOpenFileName(None, msg, str(o_path), filter='Batch files(*.batch)')
154+
#Fix for github gmatautomation issue #5
153155
fbatch = Path(fbatch[0])
154156

155157
try:

0 commit comments

Comments
 (0)