Skip to content

Commit

Permalink
Use environment-aware path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
dopeghoti authored Oct 27, 2021
1 parent afc60c7 commit d8374b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ada/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ async def optimize(self, query):
# print(prob)

# Write out complete problem to file
filename = 'output\problem.txt'
filename = 'output' + os.path.sep + 'problem.txt'
os.makedirs(os.path.dirname(filename), exist_ok=True)
with open(filename, 'w') as f:
f.write(str(prob))
Expand Down

0 comments on commit d8374b1

Please sign in to comment.