INNER CODE UNIT · Python
filePath
Silverlan/pragma · build_scripts/build.py:1075
filePath = Path(build_dir) / fileName
cmds.append(join_args(build_args))
for cmd in cmds:
print_info(cmd)
if platform == "win32":
cmds = ["@echo off"] +cmds
else:
cmds = ["#!/bin/bash"] +cmds
with open(str(filePath), "w") as f:
for cmd in cmds:
f.write(cmd +"\n")
return filePath
return None
print_msg("Running build command...")