Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/autoinstall.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-23 13:30:25 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-23 13:30:25 (GMT)
commitf3f2936331ce7e27c4e4c3326513d542a0c94be3 (patch)
tree5e3f103caf2cc058fc7e87115cc8cf1309137ae0 /devbot/autoinstall.py
parent9e4258d3669e935518f352912946c1477b0db379 (diff)
Refactor to use a Module class
Diffstat (limited to 'devbot/autoinstall.py')
-rwxr-xr-xdevbot/autoinstall.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/devbot/autoinstall.py b/devbot/autoinstall.py
index d9103e6..0b9fac4 100755
--- a/devbot/autoinstall.py
+++ b/devbot/autoinstall.py
@@ -16,8 +16,8 @@ monitors = []
def install(module, file):
print "Installing %s" % file.get_path()
- source_dir = config.get_module_source_dir(module)
- build_dir = config.get_module_build_dir(module)
+ source_dir = module.get_source_dir()
+ build_dir = module.get_build_dir()
dir = os.path.dirname(file.get_path())
relative_path = os.path.relpath(dir, source_dir)
@@ -40,7 +40,7 @@ def observe():
if module.get("autoinstall", False):
print "Observing the %s module" % module["name"]
- source_dir = config.get_module_source_dir(module)
+ source_dir = module.get_source_dir()
for root, dirs, files in os.walk(source_dir):
for dir in dirs:
file = Gio.File.new_for_path(os.path.join(root, dir))