Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linuxbin
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor 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
Aerospace and Mechanical Engineering
linuxbin
Commits
e22b6951
Commit
e22b6951
authored
1 month ago
by
Papeleux Luc
Browse files
Options
Downloads
Plain Diff
Merge branch 'ArcelorTec3' into 'master'
FixLaunchGui See merge request am-dept/linuxbin!51
parents
4297731e
4b084e56
Branches
master
Branches containing commit
Tags
v3057
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
launch.py
+7
-1
7 additions, 1 deletion
launch.py
with
7 additions
and
1 deletion
launch.py
+
7
−
1
View file @
e22b6951
...
...
@@ -348,7 +348,13 @@ class LaunchJob(ParametricJob):
pin
.
write
(
b
'
else:
\n
'
)
pin
.
write
((
'
\t
print (
"
metafor dir %s not found!
"
)
\n
'
%
mtfdir
).
encode
(
'
utf-8
'
))
pin
.
write
(
b
'
\t
sys.exit()
\n\n
'
)
pin
.
write
((
'
exec(open(r
"
%s
"
).read())
\n
'
%
os
.
path
.
join
(
mtfdir
,
'
.pythonrc.py
'
)).
encode
(
'
utf-8
'
))
# .pythonrc.py
# __file__ has to be defined (with absPath) to execute .pythonc.py
# + propre comme ca & donne un traceback quand ca va pas ... (thnks robo)
pin
.
write
((
'
rcfile = r
"
%s
"
\n
'
%
os
.
path
.
join
(
mtfdir
,
'
.pythonrc.py
'
)).
encode
(
'
utf-8
'
))
pin
.
write
((
'
script = open(rcfile, encoding=
"
utf-8
"
).read()
\n
'
).
encode
(
'
utf-8
'
))
pin
.
write
((
'
exec(compile(script, rcfile,
"
exec
"
),{
"
__file__
"
:rcfile})
\n
'
).
encode
(
'
utf-8
'
))
# battery
pin
.
write
(
b
'
import toolbox.battery as b
\n
'
)
pin
.
write
(
b
'
battery = b.Battery()
\n
'
)
pin
.
write
(
b
'
battery.keepFacs = True
\n
'
)
...
...
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