Skip to content
Permalink
Browse files
publication_list: Use os.makedirs instead of os.mkdir to create direc…
…tories.
  • Loading branch information
xuhdev committed Mar 8, 2017
1 parent 61a892e commit 5741140d8f6b1d9787e2c74e714ffb3a042b5ed9
Showing with 2 additions and 2 deletions.
  1. +2 −2 v7/publication_list/publication_list.py
@@ -104,13 +104,13 @@ def run(self):

if bibtex_dir: # create the bibtex dir if the option is set
try:
os.mkdir(os.path.sep.join((self.output_folder, bibtex_dir)))
os.makedirs(os.path.sep.join((self.output_folder, bibtex_dir)))
except OSError: # probably because the dir already exists
pass

if detail_page_dir: # create the detail page dir if the option is set
try:
os.mkdir(os.path.sep.join((self.output_folder, detail_page_dir)))
os.makedirs(os.path.sep.join((self.output_folder, detail_page_dir)))
except OSError: # probably because the dir already exists
pass

0 comments on commit 5741140

Please sign in to comment.