
Seen at https://lgtm.com/projects/g/electron/electron/?mode=list&id=py%2Funused-import and confirmed with manual inspection.
10 lines
171 B
Python
10 lines
171 B
Python
import sys
|
|
import os
|
|
|
|
def main(argv):
|
|
cwd = argv[1]
|
|
os.chdir(cwd)
|
|
os.execv(sys.executable, [sys.executable] + argv[2:])
|
|
|
|
if __name__ == '__main__':
|
|
main(sys.argv)
|