Lines Matching refs:os
21 import os
35 if not os.path.exists(path):
36 os.makedirs(path)
40 if os.path.exists(path):
45 if os.path.exists(path):
46 os.remove(path)
68 fd = os.open(path, os.O_APPEND|os.O_CREAT|os.O_WRONLY)
69 with os.fdopen(fd, 'a+') as utils_append:
82 ark_frontend_tool = os.path.join(DEFAULT_ARK_FRONTEND_TOOL)
84 ark_frontend_tool = os.path.join(args.ark_frontend_tool)
86 ts2abc_build_dir = os.path.join(os.path.dirname(os.path.realpath(ark_frontend_tool)), "..")
87 if os.path.exists(os.path.join(ts2abc_build_dir, "package.json")):
89 elif os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")):
90 npm_install(os.path.join(ts2abc_build_dir, ".."))
95 os.chdir(cwd)
97 os.chdir(WORK_PATH)