Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-15 20:00:42 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-15 20:00:42 (GMT)
commitc74570b8e0a42bda292e398c2bb7233044b37a7a (patch)
tree5237ed436f53e94f917157fb4771f27742a1372f /commands
parent02da7afee9ffd79775f6a571f4cf25a444d31ac9 (diff)
No point in passing commands dir to devbot
Diffstat (limited to 'commands')
-rw-r--r--commands/common.py2
-rwxr-xr-xcommands/run-tests2
-rwxr-xr-xcommands/shell7
3 files changed, 7 insertions, 4 deletions
diff --git a/commands/common.py b/commands/common.py
index a5209c2..6b961bd 100644
--- a/commands/common.py
+++ b/commands/common.py
@@ -2,7 +2,6 @@ import os
import sys
base_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
-tests_dir = os.path.join(base_dir, "tests")
sys.path.append(base_dir)
@@ -19,7 +18,6 @@ def setup():
install_dir=install_dir,
source_dir=os.path.join(base_dir, "source"),
build_dir=os.path.join(base_dir, "build"),
- commands_dir=os.path.join(base_dir, "commands"),
state_dir=os.path.join(base_dir, "state"),
prefs_path=os.path.join(base_dir, "prefs"),
logs_dir=logs_dir,
diff --git a/commands/run-tests b/commands/run-tests
index 3f92681..d09f621 100755
--- a/commands/run-tests
+++ b/commands/run-tests
@@ -17,7 +17,7 @@ def _run_ui_tests():
shutil.rmtree(profile_path, ignore_errors=True)
virtual = "SUGAR_BUILDBOT" in os.environ
- test_path = os.path.join(common.tests_dir, "sugar", "shell.py")
+ test_path = os.path.join(common.base_dir, "tests", "sugar", "shell.py")
result = run.run_test("sugar-runner", test_path, virtual)
diff --git a/commands/shell b/commands/shell
index 71f3ceb..55449b8 100755
--- a/commands/shell
+++ b/commands/shell
@@ -6,6 +6,11 @@ import common
from devbot import shell
from devbot import config
+from devbot import environ
common.setup()
-shell.start(os.path.join(config.commands_dir, "bashrc"))
+
+commands_dir = os.path.join(common.base_dir, "commands")
+
+environ.add_path("PATH", commands_dir)
+shell.start(os.path.join(commands_dir, "bashrc"))