electron/build/run-in-dir.py

12 строки
189 B
Python

import sys
import os
import subprocess
def main(argv):
cwd = argv[1]
os.chdir(cwd)
os.execv(sys.executable, [sys.executable] + argv[2:])
if __name__ == '__main__':
main(sys.argv)