From 66dc2e7ea7011ae63e1d404ebffeaa7782a7f2f5 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 14 Nov 2012 15:32:49 +0000 Subject: 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. --- (limited to 'commands') diff --git a/commands/check-system b/commands/check-system new file mode 100755 index 0000000..aca432f --- /dev/null +++ b/commands/check-system @@ -0,0 +1,8 @@ +#!/usr/bin/python + +import common + +from devbot import system + +common.setup() +system.check() 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")) -- cgit v0.9.1