aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-02-18 05:12:43 +0100
committerSebastian Pipping <sebastian@pipping.org>2010-02-18 05:24:02 +0100
commit8990dad4eb192d342545589c66555faae88e8301 (patch)
tree54b84012f2e80537434f38328b07a987b68c003a /bin
parentAdd pylint config (diff)
downloadlayman-8990dad4eb192d342545589c66555faae88e8301.tar.gz
layman-8990dad4eb192d342545589c66555faae88e8301.tar.bz2
layman-8990dad4eb192d342545589c66555faae88e8301.zip
Resolve Actions class, allow custom sys.argv for Config class
Diffstat (limited to 'bin')
-rwxr-xr-xbin/layman11
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/layman b/bin/layman
index 3080c05..b85f4fa 100755
--- a/bin/layman
+++ b/bin/layman
@@ -6,10 +6,12 @@
#
# Copyright:
# (c) 2005 Gunnar Wrobel
+# (c) 2009 Sebastian Pipping
# Distributed under the terms of the GNU General Public License v2
#
# Author(s):
# Gunnar Wrobel <wrobel@gentoo.org>
+# Sebastian Pipping <sebastian@pipping.org>
#
__version__ = "$Id$"
@@ -21,7 +23,7 @@ __version__ = "$Id$"
#-------------------------------------------------------------------------------
from layman.config import Config
-from layman.action import Actions
+from layman.action import main
#===============================================================================
#
@@ -29,9 +31,4 @@ from layman.action import Actions
#
#-------------------------------------------------------------------------------
-def main():
-
- Actions(Config())
-
-if __name__ == "__main__":
- main()
+main(Config())