From 358e765803bd3de69ac5672bcdb0dbc2ad2619fa Mon Sep 17 00:00:00 2001 From: Miguel de Moura Date: Tue, 18 Dec 2018 23:48:20 +0000 Subject: [PATCH] Fix tmp file path directory slash on windows --- client/src/myazo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/myazo.py b/client/src/myazo.py index 21c6e0a..18385e3 100644 --- a/client/src/myazo.py +++ b/client/src/myazo.py @@ -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': {