Skip to content

Commit

Permalink
Merge pull request #259 from ros-infrastructure/fix_python2
Browse files Browse the repository at this point in the history
fix script generation with Python 2
  • Loading branch information
dirk-thomas committed Mar 16, 2016
2 parents 8c5bee4 + 0bed475 commit 8e60356
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/devel/generate_devel_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main(argv=sys.argv[1:]):
class IncludeHook(Hook):

def __init__(self):
super(IncludeHook, self).__init__()
Hook.__init__(self)
self.scms = []
self.scripts = []

Expand Down Expand Up @@ -66,6 +66,7 @@ def beforeInclude(self, *args, **kwargs):
'scms': hook.scms,
'scripts': hook.scripts},
options={BANGPATH_OPT: False})
value = value.replace('python3', sys.executable)
print(value)


Expand Down
3 changes: 2 additions & 1 deletion scripts/doc/generate_doc_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def main(argv=sys.argv[1:]):
class IncludeHook(Hook):

def __init__(self):
super(IncludeHook, self).__init__()
Hook.__init__(self)
self.scms = []
self.scripts = []

Expand Down Expand Up @@ -95,6 +95,7 @@ def beforeInclude(self, *args, **kwargs):
'scms': hook.scms,
'scripts': scripts},
options={BANGPATH_OPT: False})
value = value.replace('python3', sys.executable)
print(value)


Expand Down
3 changes: 2 additions & 1 deletion scripts/release/generate_release_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def main(argv=sys.argv[1:]):
class IncludeHook(Hook):

def __init__(self):
super(IncludeHook, self).__init__()
Hook.__init__(self)
self.scripts = []

def beforeFile(self, *args, **kwargs):
Expand Down Expand Up @@ -108,6 +108,7 @@ def beforeFile(self, *args, **kwargs):
'source_scripts': source_scripts,
'binary_scripts': binary_scripts},
options={BANGPATH_OPT: False})
value = value.replace('python3', sys.executable)
print(value)


Expand Down

0 comments on commit 8e60356

Please sign in to comment.