rename the modules subpkg to targets, it better reflects what it contains
authorBrian Dolbec <dolsen@gentoo.org>
Sat, 12 Jan 2013 07:43:36 +0000 (23:43 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Thu, 28 Feb 2013 01:38:12 +0000 (17:38 -0800)
16 files changed:
catalyst/main.py
catalyst/targets/__init__.py [moved from catalyst/modules/__init__.py with 100% similarity]
catalyst/targets/embedded_target.py [moved from catalyst/modules/embedded_target.py with 100% similarity]
catalyst/targets/generic_stage_target.py [moved from catalyst/modules/generic_stage_target.py with 100% similarity]
catalyst/targets/generic_target.py [moved from catalyst/modules/generic_target.py with 100% similarity]
catalyst/targets/grp_target.py [moved from catalyst/modules/grp_target.py with 100% similarity]
catalyst/targets/livecd_stage1_target.py [moved from catalyst/modules/livecd_stage1_target.py with 100% similarity]
catalyst/targets/livecd_stage2_target.py [moved from catalyst/modules/livecd_stage2_target.py with 100% similarity]
catalyst/targets/netboot2_target.py [moved from catalyst/modules/netboot2_target.py with 100% similarity]
catalyst/targets/netboot_target.py [moved from catalyst/modules/netboot_target.py with 100% similarity]
catalyst/targets/snapshot_target.py [moved from catalyst/modules/snapshot_target.py with 100% similarity]
catalyst/targets/stage1_target.py [moved from catalyst/modules/stage1_target.py with 100% similarity]
catalyst/targets/stage2_target.py [moved from catalyst/modules/stage2_target.py with 100% similarity]
catalyst/targets/stage3_target.py [moved from catalyst/modules/stage3_target.py with 100% similarity]
catalyst/targets/stage4_target.py [moved from catalyst/modules/stage4_target.py with 100% similarity]
catalyst/targets/tinderbox_target.py [moved from catalyst/modules/tinderbox_target.py with 100% similarity]

index d9d82acd25ed3a38c3b82797d043790d2b94fc66..f319bf30bb3eefe25633d3fb237cc8ab26386423 100644 (file)
@@ -202,11 +202,11 @@ def import_modules():
        targetmap={}
 
        try:
-               module_dir = __selfpath__ + "/modules/"
+               module_dir = __selfpath__ + "/targets/"
                for x in required_build_targets:
                        try:
                                fh=open(module_dir + x + ".py")
-                               module=imp.load_module(x, fh,"modules/" + x + ".py",
+                               module=imp.load_module(x, fh,"targets/" + x + ".py",
                                        (".py", "r", imp.PY_SOURCE))
                                fh.close()
 
@@ -216,7 +216,7 @@ def import_modules():
                for x in valid_build_targets:
                        try:
                                fh=open(module_dir + x + ".py")
-                               module=imp.load_module(x, fh, "modules/" + x + ".py",
+                               module=imp.load_module(x, fh, "targets/" + x + ".py",
                                        (".py", "r", imp.PY_SOURCE))
                                module.register(targetmap)
                                fh.close()