os.mkdirs doesn't exist

This commit is contained in:
jkeating@harpoon.lab.boston.redhat.com 2006-10-23 22:57:30 -04:00 committed by Jesse Keating
parent 4d568ae728
commit 340e01eaf1

View File

@ -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)