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

Function create_empty_log_file

tools/make_installer.py:322–336  ·  view source on GitHub ↗
(log_file)

Source from the content-addressed store, hash-verified

320
321
322def create_empty_log_file(log_file):
323 # Normalize unix slashes on Windows
324 log_file = log_file.replace("/", os.path.sep)
325 print("[make_installer.py] Create: {file}"
326 .format(file=short_dst_path(log_file)))
327 with open(log_file, "wb") as fo:
328 fo.write("".encode("utf-8"))
329 # On Linux and Mac chmod so that for cases when package is
330 # installed using sudo. When wheel package is created it
331 # will remember file permissions set.
332 if LINUX or MAC:
333 command = "chmod 666 {file}".format(file=log_file)
334 print("[make_installer.py] {command}"
335 .format(command=command.replace(SETUP_DIR, "")))
336 subprocess.check_call(command, shell=True)
337
338
339def copy_cpp_extension_dependencies_issue359(pkg_dir):

Callers 1

mainFunction · 0.85

Calls 1

short_dst_pathFunction · 0.85

Tested by

no test coverage detected