fix catalyst_support import to new location and specify imported modules
authorBrian Dolbec <dolsen@gentoo.org>
Sat, 12 Jan 2013 06:54:11 +0000 (22:54 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Thu, 28 Feb 2013 01:38:11 +0000 (17:38 -0800)
catalyst/main.py

index b4390b2e617aef7912b61edd433cb8044428e195..79476466763280ef2cdc447e61fc64442dba0d3a 100644 (file)
@@ -17,6 +17,8 @@ sys.path.append(__selfpath__ + "/modules")
 
 import catalyst.config
 import catalyst.util
+from catalyst.modules.catalyst_support import (required_build_targets,
+       valid_build_targets, CatalystError, hash_map, find_binary, LockInUse)
 
 __maintainer__="Catalyst <catalyst@gentoo.org>"
 __version__="2.0.12.2"
@@ -351,8 +353,6 @@ def main():
 
        # import configuration file and import our main module using those settings
        parse_config(myconfig)
-       sys.path.append(conf_values["sharedir"]+"/modules")
-       from catalyst_support import *
 
        # Start checking that digests are valid now that the hash_map was imported
        # from catalyst_support