From 8990dad4eb192d342545589c66555faae88e8301 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Thu, 18 Feb 2010 05:12:43 +0100 Subject: Resolve Actions class, allow custom sys.argv for Config class --- bin/layman | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'bin') 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 +# Sebastian Pipping # __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()) -- cgit v1.2.3-1-g7c22