Commit caa34d06 authored by Jérome Perrin's avatar Jérome Perrin

DemandPlanning: use portable way of outputing files

parent 30d26f93
......@@ -219,7 +219,9 @@ def outputResults():
G.reportResults.add_sheet(excessResults)
with open('Results\\rTable.html', 'wb') as h: #completion time, cycle time and delay info in html format
with open(os.path.join('Results', 'rTable.html'), 'wb') as h: #completion time, cycle time and delay info in html format
h.write(G.reportResults.html)
with open('Results\\allocation.xlsx', 'wb') as f: #time level schedule info
with open(os.path.join('Results', 'allocation.xlsx'), 'wb') as f: #time level schedule info
f.write(G.reportResults.xlsx)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment