Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/common.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-14 15:32:49 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-14 15:40:37 (GMT)
commit66dc2e7ea7011ae63e1d404ebffeaa7782a7f2f5 (patch)
treea862db846c2bdb303a96108502402115eef40693 /commands/common.py
parentf83756431a5b6f8551f0902655ca39bf18a5e5b0 (diff)
Refactor check-system to use a devbot module
This is necessary to be able to share code, all the commands will be gradually refactored to follow this pattern.
Diffstat (limited to 'commands/common.py')
-rw-r--r--commands/common.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/commands/common.py b/commands/common.py
new file mode 100644
index 0000000..2836291
--- /dev/null
+++ b/commands/common.py
@@ -0,0 +1,12 @@
+import os
+import sys
+
+base_path = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+
+sys.path.append(base_path)
+
+from devbot import system
+from devbot import config
+
+def setup():
+ config.set_path(os.path.join(base_path, "scripts", "deps"))