Create a pipe regardless of save progress file's existence

This commit is contained in:
Pera Pisar 2019-04-25 02:52:20 +02:00
parent ed10371231
commit 31a6316f93
No known key found for this signature in database
GPG key ID: 6E1174E4DF875DCA

View file

@ -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+')