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
d443f43b
Commit
d443f43b
authored
1 month ago
by
Papeleux Luc
Browse files
Options
Downloads
Patches
Plain Diff
remove debug outputs
parent
706f3eb2
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
+2
-2
2 additions, 2 deletions
launch.py
with
2 additions
and
2 deletions
launch.py
+
2
−
2
View file @
d443f43b
...
...
@@ -340,7 +340,7 @@ class LaunchJob(ParametricJob):
# filling command to battery
pin
.
write
(
b
'
import sys, os, os.path
\n
'
)
if
1
:
#
self.debug:
if
self
.
debug
:
pin
.
write
(
b
'
print (
"
sys.path =
"
, sys.path)
\n
'
)
pin
.
write
(
b
'
print (
"
os.getcwd() =
"
, os.getcwd())
\n
'
)
pin
.
write
((
'
if os.path.isdir(r
"
%s
"
):
\n
'
%
mtfdir
).
encode
(
'
utf-8
'
))
...
...
@@ -348,7 +348,7 @@ 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
'
)
print
((
'
__file__ = r
"
%s
"
\n
'
%
os
.
path
.
join
(
mtfdir
,
'
.pythonrc.py
'
)).
encode
(
'
utf-8
'
))
#
print(('__file__ = r"%s"\n'%os.path.join(mtfdir,'.pythonrc.py')).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
'
))
pin
.
write
(
b
'
import toolbox.battery as b
\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