import os def chake_dir(directory): if not os.path.exists(directory): os.makedirs(directory) return directory