import shutil
import urllib
-from wolnelektury.utils import makedirs
+from util import makedirs
class UnicodeException(Exception):
from librarian import pdf, epub, mobi, DirDocProvider, ParseError
from librarian.parser import WLDocument
-from wolnelektury.utils import makedirs
+from util import makedirs
class Packager(object):
"""
from librarian import packagers, cover
-from wolnelektury.utils import makedirs
+from util import makedirs
class GandalfEpub(packagers.EpubPackager):
# by Paul Winkler
# http://code.activestate.com/recipes/81611-roman-numerals/
# PSFL (GPL compatible)
+import os
+
def int_to_roman(input):
"""
return sum
else:
raise ValueError, 'input is not a valid roman numeral: %s' % input
+
+
+def makedirs(path):
+ if not os.path.isdir(path):
+ os.makedirs(path)
\ No newline at end of file