Why does my tkinter app will show a node.js window?
Thanks bro,acw1668's suggestion enlighten me a lot.
I want to say,execjs
module will run js code.And if your computer install node.js
and you set PATH for node.js
,Then your default js environment is node.js
(If you don't install node.js
,then your default js environment is Jscript
in windows system).
So if you doesn't want to use node.js
,you should set the default js environment in python.
# change the js environment.os.environ["EXECJS_RUNTIME"] = "JScript"# all of environment which execjs support PyV8 = "PyV8" Node = "Node" JavaScriptCore = "JavaScriptCore" SpiderMonkey = "SpiderMonkey" JScript = "JScript" PhantomJS = "PhantomJS" SlimerJS = "SlimerJS" Nashorn = "Nashorn"