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
d861fed2
Commit
d861fed2
authored
8 years ago
by
Luc Papeleux
Browse files
Options
Downloads
Patches
Plain Diff
correction : os.path.chdir -> os.chdir
parent
b32e6363
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
parametricJob.py
+3
-3
3 additions, 3 deletions
parametricJob.py
with
3 additions
and
3 deletions
parametricJob.py
+
3
−
3
View file @
d861fed2
...
...
@@ -404,9 +404,9 @@ class ParametricJob(PRMSet):
# suppression des scripts
else
:
# on va au moins nettoyer ce qui est commun
print
"
copie imparfaite => nettoyage de ce qui est commun
"
os
.
path
.
chdir
(
localNodeDir
)
os
.
chdir
(
localNodeDir
)
rmCommonFiles
(
cmp
)
os
.
path
.
chdir
(
homeDir
)
os
.
chdir
(
homeDir
)
except
OSError
,
e
:
#except OSError as e: dont work on blueberry
print
"
unable to get back files from local directory
"
print
"
subprocess returned error :
"
,
e
...
...
@@ -536,7 +536,7 @@ def rmCommonFiles(cmp):
for
f
in
subDirCmp
.
common_files
:
print
f
os
.
remove
(
f
)
os
.
path
.
chdir
(
'
..
'
)
os
.
chdir
(
'
..
'
)
if
os
.
path
.
isempty
(
subdir
):
os
.
path
.
rmdir
(
subdir
)
...
...
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