summaryrefslogtreecommitdiffstats
path: root/bin/layman
blob: ba91c20fa41cc0df859b640510fac2aa0280ebdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python
################################################################################
# LAYMAN - A UTILITY TO SELECT AND UPDATE GENTOO OVERLAYS
################################################################################
# Distributed under the terms of the GNU General Public License v2
#
# Copyright:
#             (c) 2005 Gunnar Wrobel
#             (c) 2009 Sebastian Pipping
#             (c) 2011 Brian Dolbec
#             Distributed under the terms of the GNU General Public License v2
#
# Author(s):
#             Gunnar Wrobel <wrobel@gentoo.org>
#             Sebastian Pipping <sebastian@pipping.org>
#             Brian Dolbec <brian.dolbec@gmail.com>
#

__version__ = "0.2"

import os

#===============================================================================
#
# Dependencies
#
#-------------------------------------------------------------------------------

from   layman.argsparser     import ArgsParser
from   layman.cli            import Main

#===============================================================================
#
# MAIN
#
#-------------------------------------------------------------------------------

root = None
try:
    root = os.environ['ROOT']
except KeyError:
    pass

main = Main(ArgsParser(root=root))
main()