Add Windows compatibility to Unix journal implementation (just in case)
This commit is contained in:
parent
14907ad305
commit
4798594cfb
|
|
@ -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('.')
|
||||
|
|
|
|||
Loading…
Reference in New Issue