Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/merge.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2012-12-26 22:18:21 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2012-12-26 22:18:21 (GMT)
commitf212722e1ca3de1bc8a66e8cecb26e625024945e (patch)
tree31ca56828bb68c686132e45b867cc86fb6b5af5a /merge.py
parent30a8c909f1c2a86a9377f7d5da1d8af342ddc7af (diff)
change merge to use anothers paths
Diffstat (limited to 'merge.py')
-rwxr-xr-xmerge.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/merge.py b/merge.py
index f6d6547..9708ee3 100755
--- a/merge.py
+++ b/merge.py
@@ -7,7 +7,8 @@ DEFAULT = True
print 'Merging strings of turtle-extras with turtleblocks'
-if len(sys.argv) == 2:
+n = len(sys.argv)
+if n == 2 or n == 3:
if sys.argv[1] == 'turtlebots':
print 'Using TurtleBots-style paths'
DEFAULT = False
@@ -15,10 +16,15 @@ if len(sys.argv) == 2:
os.path.abspath('..'),
'mainline',
'po')
- path_tmp = os.path.join(
- os.path.abspath('..'),
- 'tmp',
- 'po')
+ if n == 3:
+ p = sys.argv[2]
+ if p == 'tmp':
+ path_tmp = os.path.join(
+ os.path.abspath('..'),
+ 'tmp',
+ 'po')
+ else:
+ path_tmp = os.path.join(p, 'po')
else:
print 'Using default paths'
path = os.path.join(