diff options
Diffstat (limited to 'bin/layman-updater')
-rwxr-xr-x | bin/layman-updater | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/layman-updater b/bin/layman-updater index ac9e841..51cf825 100755 --- a/bin/layman-updater +++ b/bin/layman-updater @@ -16,9 +16,15 @@ __version__ = "0.1" +import os from layman.updater import Main +root = None +try: + root = os.environ['ROOT'] +except KeyError: + pass -main = Main() +main = Main(root=root) main() |