HgApi有一个问题。当访问目录时,会发生WindowsError错误。查找存储库的处理示例,但找不到。文件夹存在,我敢肯定。
代码:
import hgapi
repo = hgapi.Repo(r"J:\any\odesk_pil")
repo.hg_init()错误:
Traceback (most recent call last):
File "C:/Users/Eugene/PycharmProjects/odesk/Mercurial3k/mercurial.py", line 6, in <module>
repo.hg_init()
File "C:\Python32\lib\site-packages\hgapi-1.6.0-py3.2.egg\hgapi\hgapi.py", line 96, in hg_init
File "C:\Python32\lib\site-packages\hgapi-1.6.0-py3.2.egg\hgapi\hgapi.py", line 92, in hg_command
File "C:\Python32\lib\site-packages\hgapi-1.6.0-py3.2.egg\hgapi\hgapi.py", line 69, in command
File "C:\Python32\lib\subprocess.py", line 744, in __init__
restore_signals, start_new_session)
File "C:\Python32\lib\subprocess.py", line 977, in _execute_child
startupinfo)
WindowsError: [Error 2] Не удается найти указанный файл发布于 2014-02-01 12:29:54
我刚刚在我这里的Windows虚拟机上安装了整个Mercurial + HgApi,它的工作没有问题,这让我想到:
hg程序)不在$PATH上但是,如果您使用正式的Windows包安装Mercurial,那么后者就不会是一个问题。
https://stackoverflow.com/questions/21497689
复制相似问题