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
4b084e56
Commit
4b084e56
authored
1 month ago
by
Papeleux Luc
Browse files
Options
Downloads
Patches
Plain Diff
clear comments and fix form
parent
32f8b4d3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
launch.py
+3
-3
3 additions, 3 deletions
launch.py
with
3 additions
and
3 deletions
launch.py
+
3
−
3
View file @
4b084e56
...
...
@@ -348,13 +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
'
)
# .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
'
))
#pin.write(('__file__ = r"%s"\n'%os.path.join(mtfdir,'.pythonrc.py')).encode('utf-8'))
#pin.write(('exec(open(r"%s").read())\n'%os.path.join(mtfdir,'.pythonrc.py')).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