* viewvc/bin/standalone.py

(serve): Fix some leftover references to the old cvsnt_exe_path
    config option.

git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1452 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/authz-dev
cmpilato 2006-10-17 03:38:21 +00:00
parent 9115900b3a
commit 7e55acdc5d
1 changed files with 3 additions and 4 deletions

View File

@ -299,12 +299,11 @@ If this doesn't work, please click on the link above.
cfg.options.docroot = None
# if cvsnt isn't found, fall back to rcs
if (cfg.conf_path is None
and cfg.general.cvsnt_exe_path):
if (cfg.conf_path is None and cfg.utilities.cvsnt):
import popen
cvsnt_works = 0
try:
fp = popen.popen(cfg.general.cvsnt_exe_path, ['--version'], 'rt')
fp = popen.popen(cfg.utilities.cvsnt, ['--version'], 'rt')
try:
while 1:
line = fp.readline()
@ -319,7 +318,7 @@ If this doesn't work, please click on the link above.
except:
pass
if not cvsnt_works:
cfg.cvsnt_exe_path = None
cfg.utilities.cvsnt = None
ViewVC_Server(host, port, callback).serve_until_quit()
except (KeyboardInterrupt, select.error):