Skip to content

Commit

Permalink
Fix tmp file path directory slash on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldemoura committed Dec 18, 2018
1 parent ecb7202 commit 358e765
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/myazo.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
config.read(os.path.expanduser('~/.config/myazo/config.ini'))
config = config['Myazo']

tmp_file = '{}/{}.png'.format(tempfile.gettempdir(), next(tempfile._get_candidate_names()))
tmp_file = os.path.join(
tempfile.gettempdir(),
'{}.png'.format(next(tempfile._get_candidate_names()))
)

backends = {
'Linux': {
Expand Down

0 comments on commit 358e765

Please sign in to comment.