summaryrefslogtreecommitdiff
path: root/src/browser/UserManual.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser/UserManual.py')
-rw-r--r--src/browser/UserManual.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/browser/UserManual.py b/src/browser/UserManual.py
index f31af29d..886d88a5 100644
--- a/src/browser/UserManual.py
+++ b/src/browser/UserManual.py
@@ -1,6 +1,5 @@
from PyQt4 import QtGui
import subprocess
-import platform
import os
@@ -15,14 +14,15 @@ class UserManual(QtGui.QWidget):
self.vlayout = QtGui.QVBoxLayout()
- file = os.path.realpath(
- 'library/browser/User-Manual/eSim_Manual_2019_Dec_31.pdf'
- )
+ manual = 'library/browser/User-Manual/eSim_Manual_2.1.pdf'
- if 'Win' in platform.system():
- os.startfile(file)
+ if os.name == 'nt':
+ os.startfile(os.path.realpath(manual))
else:
- subprocess.Popen(['xpdf.real', file], shell=False)
+ manual_path = '../../' + manual
+ subprocess.Popen(
+ ['xdg-open', os.path.realpath(manual_path)], shell=False
+ )
self.setLayout(self.vlayout)
self.show()