From f3f2936331ce7e27c4e4c3326513d542a0c94be3 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 23 Nov 2012 13:30:25 +0000 Subject: Refactor to use a Module class --- (limited to 'devbot/autoinstall.py') 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)) -- cgit v0.9.1