fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
covers for riderĂ³
[librarian.git]
/
librarian
/
util.py
diff --git
a/librarian/util.py
b/librarian/util.py
index
396c84b
..
0886fd5
100644
(file)
--- a/
librarian/util.py
+++ b/
librarian/util.py
@@
-2,6
+2,8
@@
# by Paul Winkler
# http://code.activestate.com/recipes/81611-roman-numerals/
# PSFL (GPL compatible)
# by Paul Winkler
# http://code.activestate.com/recipes/81611-roman-numerals/
# PSFL (GPL compatible)
+import os
+
def int_to_roman(input):
"""
def int_to_roman(input):
"""
@@
-115,3
+117,8
@@
def roman_to_int(input):
return sum
else:
raise ValueError, 'input is not a valid roman numeral: %s' % 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