electron/build/npm-run.py

11 lines
199 B
Python
Raw Normal View History

2018-05-03 22:44:29 +00:00
#!/usr/bin/env python
import os
import sys
SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
args = ["npm", "run",
"--prefix",
SOURCE_ROOT
] + sys.argv[1:]
os.execvp("npm", args)