building docs failed when the output directory didnt alredy exist.

This commit is contained in:
Campbell Barton 2010-05-09 17:18:57 +00:00
parent 46a40c9905
commit 6d8cb93f71

@ -669,6 +669,9 @@ if __name__ == '__main__':
# only for partial updates # only for partial updates
path_in_tmp = path_in + "-tmp" path_in_tmp = path_in + "-tmp"
if not os.path.exists(path_in):
os.mkdir(path_in)
for f in os.listdir(path_examples): for f in os.listdir(path_examples):
if f.endswith(".py"): if f.endswith(".py"):
EXAMPLE_SET.add(os.path.splitext(f)[0]) EXAMPLE_SET.add(os.path.splitext(f)[0])