mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Add Windows compatibility to Unix journal implementation (just in case)
This commit is contained in:
parent
14907ad305
commit
4798594cfb
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue