File loxodo-module-import.patch of Package loxodo

Index: loxodo.py
===================================================================
--- loxodo.py.orig
+++ loxodo.py
@@ -6,11 +6,11 @@ import platform
 
 # On Windows CE, use the "ppygui" frontend.
 if platform.system() == "Windows" and platform.release() == "CE":
-    from src.frontends.ppygui import loxodo
+    from loxodo.frontends.ppygui import loxodo
     sys.exit()
 
 # All other platforms use the Config module
-from src.config import config
+from loxodo.config import config
 
 # store base script name, taking special care if we're "frozen" using py2app or py2exe
 if hasattr(sys,"frozen") and (sys.platform != 'darwin'):
@@ -20,7 +20,7 @@ else:
 
 # If cmdline arguments were given, use the "cmdline" frontend.
 if len(sys.argv) > 1:
-    from src.frontends.cmdline import loxodo
+    from loxodo.frontends.cmdline import loxodo
     sys.exit()
 
 # In all other cases, use the "wx" frontend.    
@@ -30,8 +30,8 @@ except ImportError, e:
     print >> sys.stderr, 'Could not find wxPython, the wxWidgets Python bindings: %s' % e
     print >> sys.stderr, 'Falling back to cmdline frontend.'
     print >> sys.stderr, ''
-    from src.frontends.cmdline import loxodo
+    from loxodo.frontends.cmdline import loxodo
     sys.exit()
 
-from src.frontends.wx import loxodo
+from loxodo.frontends.wx import loxodo
 
openSUSE Build Service is sponsored by