You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/aap/files/aap-1.091-module-install.patch

27 lines
677 B

Allow aap to be installed like a normal python module.
--- aap-1.091/aap
+++ aap-1.091/aap
@@ -7,8 +7,8 @@
# This simply calls the main() function in the Main.py module.
-import Main
+from aap import Main
-Main.main()
+Main.main(1)
# vim: set sw=4 sts=4 tw=79 fo+=l:
--- aap-1.091/Main.py
+++ aap-1.091/Main.py
@@ -168,7 +168,7 @@
if setroot:
# We need to know the location of our modules (find ccskim there).
try:
- progname = os.path.realpath(sys.argv[0])
+ progname = os.path.realpath(__file__)
except:
# Doesn't have os.path.realpath(), it's new in Python 2.2
# Use our copy of it.