Move __init__.py to main.py.
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Jun 2009 20:10:06 +0000 (20:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Jun 2009 20:10:06 +0000 (20:10 -0000)
svn path=/main/trunk/; revision=13698

bin/emerge
pym/_emerge/__init__.py [new file with mode: 0644]

index d3cf24fc8d032fc041f66499d965537f64ad9bb6..8ffa6e4357586700ef175b570a977c94c526aced 100755 (executable)
@@ -26,7 +26,7 @@ def debug_signal(signum, frame):
 signal.signal(signal.SIGUSR1, debug_signal)
 
 try:
-       import _emerge
+       from _emerge.main import emerge_main
 except ImportError:
        from os import path as osp
        import sys
@@ -37,7 +37,7 @@ if __name__ == "__main__":
        import sys
        from portage.exception import ParseError, PermissionDenied
        try:
-               retval = _emerge.emerge_main()
+               retval = emerge_main()
        except PermissionDenied, e:
                sys.stderr.write("Permission denied: '%s'\n" % str(e))
                sys.exit(e.errno)
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
new file mode 100644 (file)
index 0000000..95cbda1
--- /dev/null
@@ -0,0 +1,3 @@
+# Copyright 2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$