Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master' into packag…
Browse files Browse the repository at this point in the history
…e_on_appveyor
  • Loading branch information
jnsebgosselin committed Dec 20, 2018
2 parents 142a3c9 + 33859f1 commit 926695b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gwhat/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def save_content_to_file(fname, fcontent):
Smart function that checks the extension and save the content in the
appropriate file format.
"""
root, ext = os.path.splitext(fname)
if not osp.exists(osp.dirname(fname)):
os.makedirs(osp.dirname(fname))

root, ext = osp.splitext(fname)
if ext in ['.xlsx', '.xls']:
save_content_to_excel(fname, fcontent)
elif ext == '.tsv':
Expand Down

0 comments on commit 926695b

Please sign in to comment.