os.mkdirs doesn't exist
This commit is contained in:
parent
4d568ae728
commit
340e01eaf1
@ -148,7 +148,7 @@ def main():
|
|||||||
|
|
||||||
if not os.path.exists(opts.cachedir):
|
if not os.path.exists(opts.cachedir):
|
||||||
try:
|
try:
|
||||||
os.mkdirs(opts.cachedir)
|
os.makedirs(opts.cachedir)
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
print >> sys.stderr, "Error: Cannot create cache dir %s" % opts.destdir
|
print >> sys.stderr, "Error: Cannot create cache dir %s" % opts.destdir
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user