From c13e7b0f873e4857f1ce7924c0a72609df3ddca2 Mon Sep 17 00:00:00 2001
From: rahulp13
Date: Fri, 24 Jul 2020 01:08:02 +0530
Subject: platform independent library and image paths, flake8 compliant

---
 src/browser/Welcome.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'src/browser/Welcome.py')

diff --git a/src/browser/Welcome.py b/src/browser/Welcome.py
index 69584f10..aa7b612f 100644
--- a/src/browser/Welcome.py
+++ b/src/browser/Welcome.py
@@ -1,4 +1,5 @@
 from PyQt4 import QtGui, QtCore
+import os
 
 
 class Welcome(QtGui.QWidget):
@@ -10,10 +11,14 @@ class Welcome(QtGui.QWidget):
     def __init__(self):
         QtGui.QWidget.__init__(self)
         self.vlayout = QtGui.QVBoxLayout()
-
         self.browser = QtGui.QTextBrowser()
+
+        init_path = '../../'
+        if os.name == 'nt':
+            init_path = ''
+
         self.browser.setSource(QtCore.QUrl(
-            "library/browser/welcome.html")
+            init_path + "library/browser/welcome.html")
         )
         self.browser.setOpenExternalLinks(True)
         self.browser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
-- 
cgit