Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ROS Java Build Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CeTI
ROS
ROS Java Packages
ROS Java Build Tools
Commits
970fadbb
Commit
970fadbb
authored
11 years ago
by
Benjamin Chrétien
Browse files
Options
Downloads
Patches
Plain Diff
Fix Python2/Python3 clash.
parent
c6deb912
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
generate_environment_variables.py
+6
-6
6 additions, 6 deletions
generate_environment_variables.py
with
6 additions
and
6 deletions
generate_environment_variables.py
+
6
−
6
View file @
970fadbb
...
@@ -48,12 +48,12 @@ if __name__ == '__main__':
...
@@ -48,12 +48,12 @@ if __name__ == '__main__':
else
:
else
:
if
repo
in
[
os
.
path
.
join
(
w
,
'
share
'
,
'
maven
'
)
for
w
in
workspaces
]:
if
repo
in
[
os
.
path
.
join
(
w
,
'
share
'
,
'
maven
'
)
for
w
in
workspaces
]:
repo
=
os
.
path
.
join
(
workspaces
[
0
],
'
share
'
,
'
maven
'
)
repo
=
os
.
path
.
join
(
workspaces
[
0
],
'
share
'
,
'
maven
'
)
print
repo
print
(
repo
)
elif
args
.
maven_repository
:
elif
args
.
maven_repository
:
repo
=
get_environment_variable
(
environment_variables
,
'
ROS_MAVEN_REPOSITORY
'
)
repo
=
get_environment_variable
(
environment_variables
,
'
ROS_MAVEN_REPOSITORY
'
)
if
repo
is
None
:
if
repo
is
None
:
repo
=
'
https://github.com/rosjava/rosjava_mvn_repo/raw/master
'
repo
=
'
https://github.com/rosjava/rosjava_mvn_repo/raw/master
'
print
repo
print
(
repo
)
elif
args
.
maven_path
:
elif
args
.
maven_path
:
new_maven_paths
=
[
os
.
path
.
join
(
path
,
'
share
'
,
'
maven
'
)
for
path
in
workspaces
]
new_maven_paths
=
[
os
.
path
.
join
(
path
,
'
share
'
,
'
maven
'
)
for
path
in
workspaces
]
maven_paths
=
get_environment_variable
(
environment_variables
,
'
ROS_MAVEN_PATH
'
)
maven_paths
=
get_environment_variable
(
environment_variables
,
'
ROS_MAVEN_PATH
'
)
...
@@ -64,7 +64,7 @@ if __name__ == '__main__':
...
@@ -64,7 +64,7 @@ if __name__ == '__main__':
common_paths
=
[
p
for
p
in
maven_paths
if
p
in
new_maven_paths
]
common_paths
=
[
p
for
p
in
maven_paths
if
p
in
new_maven_paths
]
if
common_paths
:
if
common_paths
:
maven_paths
=
new_maven_paths
maven_paths
=
new_maven_paths
print
os
.
pathsep
.
join
(
maven_paths
)
print
(
os
.
pathsep
.
join
(
maven_paths
)
)
elif
args
.
gradle_user_home
:
elif
args
.
gradle_user_home
:
home
=
get_environment_variable
(
environment_variables
,
'
GRADLE_USER_HOME
'
)
home
=
get_environment_variable
(
environment_variables
,
'
GRADLE_USER_HOME
'
)
if
home
is
None
:
if
home
is
None
:
...
@@ -72,6 +72,6 @@ if __name__ == '__main__':
...
@@ -72,6 +72,6 @@ if __name__ == '__main__':
else
:
else
:
if
home
in
[
os
.
path
.
join
(
w
,
'
share
'
,
'
gradle
'
)
for
w
in
workspaces
]:
if
home
in
[
os
.
path
.
join
(
w
,
'
share
'
,
'
gradle
'
)
for
w
in
workspaces
]:
home
=
os
.
path
.
join
(
workspaces
[
0
],
'
share
'
,
'
gradle
'
)
home
=
os
.
path
.
join
(
workspaces
[
0
],
'
share
'
,
'
gradle
'
)
print
home
print
(
home
)
else
:
else
:
print
"
Nothing to see here - please provide one of the valid command switches.
"
print
(
"
Nothing to see here - please provide one of the valid command switches.
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment