Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Tobias Langer
/
experiment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4319039f
authored
Oct 05, 2016
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved status messages.
parent
10a40728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
generate.py
+4
-4
No files found.
generate.py
View file @
4319039f
...
@@ -93,20 +93,20 @@ def main():
...
@@ -93,20 +93,20 @@ def main():
experiment_dir
=
os
.
path
.
join
(
cwd
,
experiment
[
'name'
])
experiment_dir
=
os
.
path
.
join
(
cwd
,
experiment
[
'name'
])
# Create folder
# Create folder
print
(
'
create folder
'
,
experiment_dir
,
file
=
sys
.
stderr
)
print
(
'
Create folder…
'
,
experiment_dir
,
file
=
sys
.
stderr
)
if
not
create_dir
(
experiment_dir
):
if
not
create_dir
(
experiment_dir
):
print
(
'Skipping experiment '
,
experiment
[
'name'
],
file
=
sys
.
stderr
)
print
(
'Skipping experiment '
,
experiment
[
'name'
],
file
=
sys
.
stderr
)
continue
continue
# Add header
# Add header
print
(
'
create header file
'
,
file
=
sys
.
stderr
)
print
(
'
Create header file…
'
,
file
=
sys
.
stderr
)
create_header
(
args
.
header
,
experiment
,
experiment_dir
)
create_header
(
args
.
header
,
experiment
,
experiment_dir
)
# Add makefile & c++ file
# Add makefile & c++ file
print
(
'
add Makefile
'
,
file
=
sys
.
stderr
)
print
(
'
Adding Makefile…
'
,
file
=
sys
.
stderr
)
makefile_path
=
os
.
path
.
join
(
experiment_dir
,
'Makefile'
)
makefile_path
=
os
.
path
.
join
(
experiment_dir
,
'Makefile'
)
shutil
.
copyfile
(
args
.
makefile
,
makefile_path
)
shutil
.
copyfile
(
args
.
makefile
,
makefile_path
)
print
(
'
add C++ file
'
,
file
=
sys
.
stderr
)
print
(
'
Add C++ file(s)…
'
,
file
=
sys
.
stderr
)
cpp_file_path
=
os
.
path
.
join
(
experiment_dir
,
'experiment.cpp'
)
cpp_file_path
=
os
.
path
.
join
(
experiment_dir
,
'experiment.cpp'
)
shutil
.
copyfile
(
args
.
cpp
,
cpp_file_path
)
shutil
.
copyfile
(
args
.
cpp
,
cpp_file_path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment