[X2Go-Commits] [pyhoca-gui] 01/03: pyhoca-gui: Support importing local pyhoca.wxgui module.
git-admin at x2go.org
git-admin at x2go.org
Tue Aug 8 16:31:00 CEST 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository pyhoca-gui.
commit 269d2258dde93e2f95887c46a51f2a9e649fccfd
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Aug 8 16:25:31 2023 +0200
pyhoca-gui: Support importing local pyhoca.wxgui module.
---
pyhoca-gui | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/pyhoca-gui b/pyhoca-gui
index e24ef4a..71600ac 100755
--- a/pyhoca-gui
+++ b/pyhoca-gui
@@ -35,8 +35,12 @@ try:
except ImportError:
pass
-from pyhoca.wxgui import __VERSION__
-from pyhoca.wxgui.launcher import PyHocaGUI_Launcher
+try:
+ from .pyhoca.wxgui import __VERSION__
+ from .pyhoca.wxgui.launcher import PyHocaGUI_Launcher
+except ImportError:
+ from pyhoca.wxgui import __VERSION__
+ from pyhoca.wxgui.launcher import PyHocaGUI_Launcher
__author__ = "Mike Gabriel, Dick Kniep"
__version__ = __VERSION__
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git
More information about the x2go-commits
mailing list