summaryrefslogtreecommitdiffstats
path: root/bin/layman
diff options
context:
space:
mode:
Diffstat (limited to 'bin/layman')
-rwxr-xr-xbin/layman10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/layman b/bin/layman
index 6299d34..ba91c20 100755
--- a/bin/layman
+++ b/bin/layman
@@ -18,6 +18,8 @@
__version__ = "0.2"
+import os
+
#===============================================================================
#
# Dependencies
@@ -33,5 +35,11 @@ from layman.cli import Main
#
#-------------------------------------------------------------------------------
-main = Main(ArgsParser())
+root = None
+try:
+ root = os.environ['ROOT']
+except KeyError:
+ pass
+
+main = Main(ArgsParser(root=root))
main()