Skip to content

Commit

Permalink
publication_list: Use os.makedirs instead of os.mkdir to create direc…
Browse files Browse the repository at this point in the history
…tories.
  • Loading branch information
xuhdev committed Mar 8, 2017
1 parent 61a892e commit 5741140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v7/publication_list/publication_list.py
Expand Up @@ -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

Expand Down

0 comments on commit 5741140

Please sign in to comment.