Friday, February 26, 2016

Make a directory if it doesn't already exist

outdir = thisdir + "/Candelize/"  
if not os.path.exists(outdir):  # Make output directory if it doesn't already exist.
    os.makedirs(outdir)

Source: Stack overflow

1 comment:

  1. Online Casino in India - Play with Bonus - KDAtar
    We've got a large selection of online casino games 온카지노 가입쿠폰 in India for Indian players. Betway is the best choice for Indian players. Read more here.

    ReplyDelete