diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2012-12-26 22:18:21 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2012-12-26 22:18:21 (GMT) |
commit | f212722e1ca3de1bc8a66e8cecb26e625024945e (patch) | |
tree | 31ca56828bb68c686132e45b867cc86fb6b5af5a /merge.py | |
parent | 30a8c909f1c2a86a9377f7d5da1d8af342ddc7af (diff) |
change merge to use anothers paths
Diffstat (limited to 'merge.py')
-rwxr-xr-x | merge.py | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -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( |