From f301dcd0df741514e889fc234811cd4770dca6c7 Mon Sep 17 00:00:00 2001 From: Alexandre Rostovtsev Date: Wed, 5 Dec 2012 00:48:12 -0500 Subject: [PATCH] Append $(python_get_sitedir)/pyfa to import path Ensures that pyfa's import statements continue to work for systemwide installation. --- pyfa.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyfa.py b/pyfa.py index 6992aaf..d66cb70 100755 --- a/pyfa.py +++ b/pyfa.py @@ -63,6 +63,9 @@ if __name__ == "__main__": parser.add_option("-r", "--root", action="store_true", dest="rootsavedata", help="if you want pyfa to store its data in root folder, use this option", default=False) (options, args) = parser.parse_args() + import os + sys.path.append(os.path.join("%%SITEDIR%%", "pyfa")) + import config # Configure paths if options.rootsavedata is True: -- 1.8.0