Since we don't have any files in it at the moment, and Git doesn't
track empty directories.
from __future__ import with_statement
+import os
import os.path
import uuid
sys.stderr.write('Serving cookbook\n')
module_dir = os.path.dirname(os.path.abspath(cookbook.__file__))
static_dir = os.path.join(module_dir, 'static')
+ if not os.path.exists(static_dir):
+ os.mkdir(static_dir)
template_dir = os.path.join(module_dir, 'template')
config = os.path.join(module_dir, 'config')
s = Server(c, template_dir)