Skip to content

Commit afbda22

Browse files
committed
fix: trim pythonPath
1 parent dfcd0fa commit afbda22

File tree

1 file changed

+1
-1
lines changed
  • packages/dmg-builder/src

1 file changed

+1
-1
lines changed

packages/dmg-builder/src/dmg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ async function customizeDmg(volumePath: string, specification: DmgOptions, packa
300300
const executePython = async (execName: string) => {
301301
let pythonPath = process.env.PYTHON_PATH
302302
if (!pythonPath) {
303-
pythonPath = await exec("which", [execName])
303+
pythonPath = (await exec("which", [execName])).trim()
304304
}
305305
await exec(pythonPath, [path.join(getDmgVendorPath(), "dmgbuild/core.py")], {
306306
cwd: getDmgVendorPath(),

0 commit comments

Comments
 (0)