MCPcopy Create free account
hub / github.com/cztomczak/cefpython / check_directories

Function check_directories

tools/build.py:231–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229
230
231def check_directories():
232 print("[build.py] Check directories")
233 # Create directories if necessary
234 if not os.path.exists(CEFPYTHON_BINARY):
235 os.makedirs(CEFPYTHON_BINARY)
236 if not os.path.exists(BUILD_CEFPYTHON):
237 os.makedirs(BUILD_CEFPYTHON)
238
239 # Info if directory missing
240 if not os.path.exists(CEF_BINARIES_LIBRARIES):
241 prebuilt_name = get_cef_binaries_libraries_basename(OS_POSTFIX2)
242 print("[build.py] ERROR: Couldn't find CEF prebuilt binaries and"
243 " libraries: 'build/{prebuilt_dir}/'. Download it"
244 " from GitHub released tagged eg. 'vXX-upstream` or download"
245 " CEF binaries from Spotify Automated Builds and then run"
246 "`automate.py --prebuilt-cef`."
247 .format(prebuilt_dir=prebuilt_name))
248 sys.exit(1)
249
250 # Check directories exist
251 assert os.path.exists(BUILD_DIR)
252 assert os.path.exists(BUILD_CEFPYTHON)
253 assert os.path.exists(CEF_BINARIES_LIBRARIES)
254 assert os.path.exists(CEFPYTHON_BINARY)
255
256
257def setup_environ():

Callers 1

mainFunction · 0.85

Tested by

no test coverage detected