From 4798594cfb356c43c716c44c2b26dd2f9eb43225 Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Tue, 6 Mar 2018 10:21:07 -0800 Subject: [PATCH] Add Windows compatibility to Unix journal implementation (just in case) --- journal/unix/journal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/journal/unix/journal.py b/journal/unix/journal.py index 19213a5..0c21eb0 100644 --- a/journal/unix/journal.py +++ b/journal/unix/journal.py @@ -8,7 +8,8 @@ from PyQt5.QtCore import Qt, QThread, pyqtSignal, QRect, QRectF, QTimer from PyQt5.QtWidgets import QApplication, QWidget, QLabel from PyQt5.QtGui import QIcon, QPixmap, QPainter -pipe_path = '/tmp/oneshot-pipe' +if sys.platform == "win32": pipe_path = '\\\\.\\pipe\\oneshot-journal-to-game' +else: pipe_path = '/tmp/oneshot-pipe' try: base_path = sys._MEIPASS except AttributeError: base_path = os.path.abspath('.')