From 31a6316f932b0263ce78b0994ab677b17f0d89d3 Mon Sep 17 00:00:00 2001 From: Pera Pisar <1405223@gmail.com> Date: Thu, 25 Apr 2019 02:52:20 +0200 Subject: [PATCH] Create a pipe regardless of save progress file's existence --- journal/unix/journal.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/journal/unix/journal.py b/journal/unix/journal.py index 02de09f..471c4bc 100644 --- a/journal/unix/journal.py +++ b/journal/unix/journal.py @@ -225,10 +225,9 @@ if __name__ == '__main__': lang = lang[lang.find('[') + 1:lang.find(']')] if lang == 'en_US': lang = 'en' journal.change_image('save_' + lang) - else: - thread = WatchPipe(pipe = pipe_path) - thread.change_image.connect(journal.change_image) - thread.start() + thread = WatchPipe(pipe = pipe_path) + thread.change_image.connect(journal.change_image) + thread.start() if not os.path.exists(pipe_path): pipe_file = open(pipe_path, 'w+')