如何 运行 python 在 windows 中需要 exe 文件的脚本
How to run python script that needed exe file in windows
我试图为 https://github.com/open-source-parsers/jsoncpp
构建一个文档
命令是
python doxybuild.py --doxygen=$(which doxygen) --open --with-dot
这里我一直在
中出错
$(which doxygen)
我认为这是 linux 命令,因为我使用 windows。看到
中的帮助后
python doxybuild.py --help
我知道它要求 doxy 路径。所以我 运行 脚本
python doxybuild.py --doxygen=C:\Program Files\doxygen\bin --open --with-dot
但我仍然得到执行说
C:\Program Files\doxygen\bin is not a file
我试过了
C:\Program Files\doxygen\bin\doxygen.exe
还是一样的错误。任何人都可以帮助我在 windows 或 运行ning python 脚本上构建此 doxygen 文档,需要 windows 中的 exe 文件?谢谢。
我的电脑 运行 在 windows 10.
[编辑]
Python 我不断收到异常的脚本
def assert_is_exe(path):
if not path:
raise Exception('path is empty.')
if not os.path.isfile(path):
raise Exception('%r is not a file.' %path)
if not os.access(path, os.X_OK):
raise Exception('%r is not executable by this user.' %path)
我想我应该把它作为答案而不是评论:
尝试添加引号。 "C:\Program Files\doxygen\bin\doxygen.exe"
我试图为 https://github.com/open-source-parsers/jsoncpp
构建一个文档命令是
python doxybuild.py --doxygen=$(which doxygen) --open --with-dot
这里我一直在
中出错$(which doxygen)
我认为这是 linux 命令,因为我使用 windows。看到
中的帮助后python doxybuild.py --help
我知道它要求 doxy 路径。所以我 运行 脚本
python doxybuild.py --doxygen=C:\Program Files\doxygen\bin --open --with-dot
但我仍然得到执行说
C:\Program Files\doxygen\bin is not a file
我试过了
C:\Program Files\doxygen\bin\doxygen.exe
还是一样的错误。任何人都可以帮助我在 windows 或 运行ning python 脚本上构建此 doxygen 文档,需要 windows 中的 exe 文件?谢谢。
我的电脑 运行 在 windows 10.
[编辑] Python 我不断收到异常的脚本
def assert_is_exe(path):
if not path:
raise Exception('path is empty.')
if not os.path.isfile(path):
raise Exception('%r is not a file.' %path)
if not os.access(path, os.X_OK):
raise Exception('%r is not executable by this user.' %path)
我想我应该把它作为答案而不是评论:
尝试添加引号。 "C:\Program Files\doxygen\bin\doxygen.exe"