change to media dir when it's created

This commit is contained in:
Damien Elmes 2008-12-24 14:58:17 +09:00
parent 1abd3f4216
commit b3be3772fb

View file

@ -1365,6 +1365,8 @@ where id = :id""", pending)
if not os.path.exists(dir) and create:
try:
os.mkdir(dir)
# change to the current dir
os.chdir(dir)
except OSError:
# permission denied
return None