Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LHCbDIRAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Anton Lu
LHCbDIRAC
Commits
fb6a64d7
Commit
fb6a64d7
authored
7 years ago
by
Joel Closier
Browse files
Options
Downloads
Patches
Plain Diff
Change CMTCONFIG value
parent
0070b353
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dist-tools/gen_xenv.py
+13
-8
13 additions, 8 deletions
dist-tools/gen_xenv.py
with
13 additions
and
8 deletions
dist-tools/gen_xenv.py
+
13
−
8
View file @
fb6a64d7
...
...
@@ -41,20 +41,26 @@ from LbUtils.LbRunConfigTools import ManifestGenerator, XEnvGenerator
log
.
info
(
"
Loading LHCbDirac_version.json from %s
"
%
jsonMetadataDir
)
glob_data
.
update
(
loadConfig
(
jsonMetadataDir
,
'
LHCbDirac_version.json
'
)
)
try
:
localconfig
=
getattr
(
options
,
'
cmtconfig
'
)
except
:
print
"
cmtconfig not defined
"
sys
.
exit
(
0
)
log
.
info
(
"
Loading projectConfig.json from %s
"
%
jsonMetadataDir
)
if
os
.
environ
.
has_key
(
'
CMTCONFIG
'
):
if
os
.
path
.
exists
(
os
.
path
.
join
(
jsonMetadataDir
,
'
heptools_
'
+
os
.
environ
[
'
CMTCONFIG
'
]
+
'
.json
'
)
):
glob_data
.
update
(
loadConfig
(
jsonMetadataDir
,
'
heptools_
'
+
os
.
environ
[
'
CMTCONFIG
'
]
+
'
.json
'
)
)
else
:
glob_data
.
update
(
loadConfig
(
jsonMetadataDir
)
)
if
os
.
path
.
exists
(
os
.
path
.
join
(
jsonMetadataDir
,
'
heptools_
'
+
localconfig
+
'
.json
'
)
):
glob_data
.
update
(
loadConfig
(
jsonMetadataDir
,
'
heptools_
'
+
localconfig
+
'
.json
'
)
)
else
:
glob_data
.
update
(
loadConfig
(
jsonMetadataDir
)
)
configfile
=
os
.
path
.
join
(
jsonMetadataDir
,
'
projectConfig
Concat
.json
'
)
configfile
=
os
.
path
.
join
(
jsonMetadataDir
,
'
projectConfig
Joel
.json
'
)
with
open
(
configfile
,
'
w
'
)
as
f
:
json
.
dump
(
glob_data
,
f
,
indent
=
2
)
f
.
close
()
config
=
loadConfig
(
jsonMetadataDir
,
'
projectConfigConcat.json
'
)
config
=
loadConfig
(
jsonMetadataDir
,
'
projectConfigJoel.json
'
)
for
opt
in
(
'
cmtconfig
'
,
'
python_version
'
,
'
dir_base
'
):
if
opt
not
in
config
:
if
getattr
(
options
,
opt
):
...
...
@@ -77,4 +83,3 @@ if options.xenv_file:
xe
=
xg
.
getDocument
()
with
open
(
options
.
xenv_file
,
"
w
"
)
as
f
:
f
.
write
(
prettify
(
xe
)
)
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