UI/UserInterface.py

branch
5_0_x
changeset 356
4deb1aa438db
parent 341
a727e6ca7698
child 769
a7cac3e1f1e3
diff -r a14693e59198 -r 4deb1aa438db UI/UserInterface.py
--- a/UI/UserInterface.py	Mon Jun 14 19:40:17 2010 +0200
+++ b/UI/UserInterface.py	Sat Jun 19 19:33:43 2010 +0200
@@ -4438,7 +4438,10 @@
                 return
             
             if not home.endswith(".chm"):
-                home = "file://" + home
+                if Utilities.isWindowsPlatform():
+                    home = "file:///" + Utilities.fromNativeSeparators(home)
+                else:
+                    home = "file://" + home
         else:
             home = pythonDocDir
         
@@ -4486,7 +4489,10 @@
                         .format(home))
                 return
             
-            home = "file://" + home
+            if Utilities.isWindowsPlatform():
+                home = "file:///" + Utilities.fromNativeSeparators(home)
+            else:
+                home = "file://" + home
         
         hvType = Preferences.getHelp("HelpViewerType")
         if hvType == 1:
@@ -4540,7 +4546,10 @@
                         .format(home))
                 return
             
-            home = "file://" + home
+            if Utilities.isWindowsPlatform():
+                home = "file:///" + Utilities.fromNativeSeparators(home)
+            else:
+                home = "file://" + home
         else:
             home = pyqt4DocDir
         
@@ -4617,7 +4626,10 @@
                         .format(home))
                 return
             
-            home = "file://" + home
+            if Utilities.isWindowsPlatform():
+                home = "file:///" + Utilities.fromNativeSeparators(home)
+            else:
+                home = "file://" + home
         else:
             home = pysideDocDir
         

eric ide

mercurial