fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow multiple dc:publisher
[librarian.git]
/
librarian
/
__init__.py
diff --git
a/librarian/__init__.py
b/librarian/__init__.py
index
b257b79
..
0c77901
100644
(file)
--- a/
librarian/__init__.py
+++ b/
librarian/__init__.py
@@
-10,6
+10,8
@@
import re
import shutil
import urllib
import shutil
import urllib
+from util import makedirs
+
class UnicodeException(Exception):
def __str__(self):
class UnicodeException(Exception):
def __str__(self):
@@
-273,8
+275,7
@@
class OutputFile(object):
"""Save file to a path. Create directories, if necessary."""
dirname = os.path.dirname(os.path.abspath(path))
"""Save file to a path. Create directories, if necessary."""
dirname = os.path.dirname(os.path.abspath(path))
- if not os.path.isdir(dirname):
- os.makedirs(dirname)
+ makedirs(dirname)
shutil.copy(self.get_filename(), path)
shutil.copy(self.get_filename(), path)