我试图让一个pythoncgi脚本在apache2.2上运行。在
我在cgi-bin中有reporting.cgi
,它工作正常。在
import sys
import os
import clr
import pypyodbc
import cgi.
# HTML Header
print '<html>'
print '<head>'
print '<link rel="stylesheet" href="../html_docs/epydoc.css" type="text/css" />'
print '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'
print '<title>Test Framework</title>'
print '</head>'
..
...
..
不过,我还需要在网络驱动器上使用其他Python模块。(膝关节.py)在
所以我尝试导入位置并导入膝关节.py. 在
^{pr2}$然而,现在当我尝试调用我的网页时
[Mon Oct 07 14:02:25 2013] [error] [client 10.70.26.3] File "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin/reporting.cgi", line 23, in <module>\r\r
[Mon Oct 07 14:02:25 2013] [error] [client 10.70.26.3] ImportError: No module named genutils.
我还使用了sys.path.append
并且没有使用驱动器号(//machine/dir/swd/shared/python
)
任何建议都将不胜感激。在
谢谢。在
目前没有回答
相关问题 更多 >
编程相关推荐