Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jdl_creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Rene Caspart
jdl_creator
Commits
4fd8cab2
Commit
4fd8cab2
authored
8 years ago
by
Matthias Schnepf
Browse files
Options
Downloads
Patches
Plain Diff
fix copy executable
parent
a66c9e2d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/JDLCreator.py
+5
-5
5 additions, 5 deletions
classes/JDLCreator.py
with
5 additions
and
5 deletions
classes/JDLCreator.py
+
5
−
5
View file @
4fd8cab2
...
...
@@ -402,15 +402,15 @@ class JDLCreator(object):
if
hasattr
(
self
,
'
job_folder
'
):
# "else" is not needed, since we start with default folder "."
if
not
os
.
path
.
exists
(
self
.
job_folder
):
os
.
makedirs
(
self
.
job_folder
,
0777
)
os
.
makedirs
(
'
%s/log
'
%
self
.
job_folder
,
0777
)
os
.
makedirs
(
'
%s/out
'
%
self
.
job_folder
,
0777
)
os
.
makedirs
(
'
%s/error
'
%
self
.
job_folder
,
0777
)
os
.
makedirs
(
self
.
job_folder
)
os
.
makedirs
(
'
%s/log
'
%
self
.
job_folder
)
os
.
makedirs
(
'
%s/out
'
%
self
.
job_folder
)
os
.
makedirs
(
'
%s/error
'
%
self
.
job_folder
)
# copy script to folder
if
os
.
path
.
isfile
(
self
.
executable
)
and
self
.
job_folder
!=
'
.
'
:
shutil
.
copy
(
self
.
executable
,
self
.
job_folder
)
# make sure the file is executable
os
.
chmod
(
'
%s/%s
'
%
(
self
.
job_folder
,
self
.
executable
),
stat
.
S_I
XGRP
|
stat
.
S_IXG
RP
|
stat
.
S_IXO
TH
)
os
.
chmod
(
'
%s/%s
'
%
(
self
.
job_folder
,
self
.
executable
.
split
(
'
/
'
)[
-
1
]
),
stat
.
S_I
RWXU
|
stat
.
S_I
RW
XG
|
stat
.
S_I
RW
XO
)
# create JDL file
self
.
__JDLFilename
=
'
%s/JDL_%s
'
%
(
self
.
job_folder
,
str
(
self
.
executable
).
split
(
'
/
'
)[
-
1
].
rsplit
(
'
.
'
)[
0
])
...
...
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