MCPcopy Create free account
hub / github.com/xpf0000/FlyEnv / renderWindowsPythonInstallScript

Function renderWindowsPythonInstallScript

src/fork/module/Python/index.ts:38–47  ·  view source on GitHub ↗
(
  template: string,
  params: WindowsPythonInstallScriptParams
)

Source from the content-addressed store, hash-verified

36}
37
38export function renderWindowsPythonInstallScript(
39 template: string,
40 params: WindowsPythonInstallScriptParams
41): string {
42 return template
43 .replace(new RegExp(`#DARKDIR#`, 'g'), params.darkDir)
44 .replace(new RegExp(`#TMPL#`, 'g'), params.tmpDir)
45 .replace(new RegExp(`#EXE#`, 'g'), params.exe)
46 .replace(new RegExp(`#APPDIR#`, 'g'), params.appDir)
47}
48
49export function renderWindowsPipInstallScript(
50 template: string,

Calls

no outgoing calls

Tested by

no test coverage detected