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
d90fc28d
authored
8 years ago
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write status messages to stderr.
parent
b863d428
Show 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 @
d90fc28d
...
@@ -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
)
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'
)
print
(
'create header file'
,
file
=
sys
.
stderr
)
create_header
(
args
.
headerfile
,
experiment
,
experiment_dir
)
create_header
(
args
.
headerfile
,
experiment
,
experiment_dir
)
# Add makefile & c++ file
# Add makefile & c++ file
print
(
'add Makefile'
)
print
(
'add 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'
)
print
(
'add C++ file'
,
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
)
...
...
This diff is collapsed.
Click to expand it.
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