diff options
Diffstat (limited to 'browser.py')
-rw-r--r-- | browser.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -340,10 +340,7 @@ class TabbedView(BrowserNotebook): def load_homepage(self): browser = self.current_browser - if os.path.isfile(_LIBRARY_PATH): - browser.load_uri('file://' + _LIBRARY_PATH) - - elif os.path.isfile(activity.get_bundle_path() + "/data/homepage.conf"): + if os.path.isfile(activity.get_bundle_path() + "/data/homepage.conf"): confFile = os.path.join(activity.get_bundle_path(),"data/homepage.conf") f = open(confFile,"r") contents = f.read().strip() @@ -355,6 +352,8 @@ class TabbedView(BrowserNotebook): default_page = os.path.join(activity.get_bundle_path(),"data/index.html") browser.load_uri(default_page) + elif os.path.isfile(_LIBRARY_PATH): + browser.load_uri('file://' + _LIBRARY_PATH) else: default_page = os.path.join(activity.get_bundle_path(), "data/index.html") |