py2app has problems with relative paths, so revert them

Mon, 07 Feb 2022 11:38:54 +0200

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 07 Feb 2022 11:38:54 +0200
changeset 145
2e8b9a3caa56
parent 144
31227feaa05a
child 146
e79cc90c7798

py2app has problems with relative paths, so revert them

borgend/__main__.py file | annotate | diff | comparison | revisions
--- a/borgend/__main__.py	Wed Feb 02 11:46:05 2022 +0200
+++ b/borgend/__main__.py	Mon Feb 07 11:38:54 2022 +0200
@@ -10,8 +10,8 @@
 import platform
 import logging
 # Own modules needed at this stage
-from . import branding
-from . import locations
+import borgend.branding as branding
+import borgend.locations as locations
 
 #
 # Argument processing
@@ -48,12 +48,12 @@
     args=parser.parse_args()
 
     # Done parsing args, import our own modules, and launch everything
-    from . import config
-    from . import dreamtime
-    from . import loggers
-    from .scheduler import Scheduler
-    from .repository import Repository
-    from .backup import Backup
+    import borgend.config as config
+    import borgend.dreamtime as dreamtime
+    import borgend.loggers as loggers
+    from borgend.scheduler import Scheduler
+    from borgend.repository import Repository
+    from borgend.backup import Backup
 
     logger=loggers.mainlogger
 

mercurial