# HG changeset patch # User Tuomo Valkonen # Date 1638732009 -7200 # Node ID ad1d4a29ec7523cb32d3f13b63258bf9277211b7 # Parent a1c97bc1789edacb216874c6ff934c8e9b3941ba Update main module imports to relative form diff -r a1c97bc1789e -r ad1d4a29ec75 README.md --- 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 diff -r a1c97bc1789e -r ad1d4a29ec75 borgend/__main__.py --- 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