Sun, 05 Dec 2021 21:20:09 +0200
Update main module imports to relative form
README.md | file | annotate | diff | comparison | revisions | |
borgend/__main__.py | file | annotate | diff | comparison | revisions |
--- a/README.md Sun Dec 05 21:08:01 2021 +0200 +++ b/README.md Sun Dec 05 21:20:09 2021 +0200 @@ -28,8 +28,8 @@ ## Installation Borgend naturally requires [Borg Backup][] to be installed as well as a working -[Python 3](https://www.python.org/) installation. Install both according to the -instructions for your operating system. With this done, located in the top-level +[Python 3](https://www.python.org/) installation. Install both according to the +instructions for your operating system. With this done, located in the top-level directory of the borgend source tree, you can install borgend pip3 install . @@ -45,6 +45,13 @@ Before this, you will probably, however, want to create a configuration file as detailed below. A standalone application, explained below, can be more convenient for access to passwords from the system keyring. +If you do not wish to install borgend and would rather run it in-place, use + + python3 -m borgend + +in the toplevel directory of the borgend source tree. + + ## Usage and configuration ### Configuration file
--- a/borgend/__main__.py Sun Dec 05 21:08:01 2021 +0200 +++ b/borgend/__main__.py Sun Dec 05 21:20:09 2021 +0200 @@ -10,8 +10,8 @@ import platform import logging # Own modules needed at this stage -import borgend.branding as branding -import borgend.locations as locations +from . import branding +from . import locations # # Argument processing @@ -48,12 +48,12 @@ args=parser.parse_args() # Done parsing args, import our own modules, and launch everything - 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 + from . import config + from . import dreamtime + from . import loggers + from .scheduler import Scheduler + from .repository import Repository + from .backup import Backup logger=loggers.mainlogger