Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sébastien Villemot
website
Commits
0815587c
Verified
Commit
0815587c
authored
Oct 30, 2018
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
automatically move wp.yml to the _data directory
parent
c2b513c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
assets/RePEc/rdf2yml.py
assets/RePEc/rdf2yml.py
+6
-0
No files found.
assets/RePEc/rdf2yml.py
View file @
0815587c
...
...
@@ -88,5 +88,11 @@ for key in sorted(wps, reverse=True):
yml
.
write
(
'
\n
'
)
yml
.
close
()
wp_data_file
=
"../../_data/wp.yml"
if
os
.
path
.
exists
(
wp_data_file
):
os
.
remove
(
wp_data_file
)
os
.
rename
(
"wp.yml"
,
wp_data_file
)
print
(
'Done writing wp.yml'
)
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