Lines Matching defs:os
10 import os, sys, codecs, md5
16 pathname = os.path.dirname(sys.argv[0])
44 src_path = os.path.abspath(SRC_DIR)
46 template_path = os.path.abspath(TEMPLATE_DIR)
47 dest_path = os.path.abspath(DEST_DIR)
48 tests_dest_path = os.path.abspath(TESTS_DEST_DIR)
50 if not os.path.exists(dest_path):
51 os.mkdir(dest_path)
53 if not os.path.exists(tests_dest_path):
54 os.mkdir(tests_dest_path)
57 return codecs.open(os.path.join(path, file), "r", "utf-8").read()
124 for i in os.listdir(src_path):
126 dirname = os.path.join(src_path, i)
128 if os.path.isdir(dirname):
130 metadir = os.path.join(dirname, SRC_SUBDIR)
131 if os.path.isdir(metadir):
132 for j in os.listdir(metadir):
192 out = codecs.open(os.path.join(dest_path, DEST_JSON), 'w', 'utf-8')
197 out = codecs.open(os.path.join(dest_path, DEST_JS), 'w', 'utf-8')
202 out = codecs.open(os.path.join(