Add Windows compatibility to Unix journal implementation (just in case)

This commit is contained in:
Vinyl Darkscratch 2018-03-06 10:21:07 -08:00
parent 14907ad305
commit 4798594cfb
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ from PyQt5.QtCore import Qt, QThread, pyqtSignal, QRect, QRectF, QTimer
from PyQt5.QtWidgets import QApplication, QWidget, QLabel from PyQt5.QtWidgets import QApplication, QWidget, QLabel
from PyQt5.QtGui import QIcon, QPixmap, QPainter 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 try: base_path = sys._MEIPASS
except AttributeError: base_path = os.path.abspath('.') except AttributeError: base_path = os.path.abspath('.')