Python裸模块WindowsError:[错误2]系统找不到指定的文件

时间:2016-02-06 23:57:09

标签: javascript python python-2.7 python-3.x subprocess

尝试测试从here 获取测试文件后得到的某个Naked模块在更改格式后甚至将py和js文件放在同一目录中。

 from Naked.toolshed.shell import execute_js, muterun_js
 success = execute_js('script.js')

我也试过C:\ ez \ script.js,C:\ ez \ script.js,C://ez//script.js和C:/ez/script.js仍然得到

 Traceback (most recent call last):
 File "C:/ez/ked.py", line 3, in <module>
  success = execute_js('script.js')
 File "C:\Python27\lib\site-packages\Naked\toolshed\shell.py", line 165, in execute_js
 raise e
 WindowsError: [Error 2] The system cannot find the file specified

0 个答案:

没有答案