[jhbuild] set default buildbot directory relative to sources directory



commit 18fd264701eea1613497989f9985baabcced4124
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat May 16 12:57:47 2009 +0200

    set default buildbot directory relative to sources directory
---
 jhbuild/commands/bot.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/jhbuild/commands/bot.py b/jhbuild/commands/bot.py
index 683e308..73e8050 100644
--- a/jhbuild/commands/bot.py
+++ b/jhbuild/commands/bot.py
@@ -672,9 +672,7 @@ class cmd_bot(Command):
         if buildbot_dir:
             basedir = buildbot_dir
         else:
-            basedir = os.path.join(
-                    os.path.dirname(os.path.abspath(__file__)),
-                    '../../buildbot/')
+            basedir = os.path.join(SRCDIR, 'buildbot')
         os.chdir(basedir)
         if not os.path.exists(os.path.join(basedir, 'builddir')):
             os.makedirs(os.path.join(basedir, 'builddir'))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]