Added .exe extension to svn binary name if the platform is Windows
This commit is contained in:
parent
9c79bacbe6
commit
d8e31f8b46
7
jsvn
7
jsvn
@ -15,6 +15,7 @@ import datetime
|
|||||||
import types
|
import types
|
||||||
import getopt
|
import getopt
|
||||||
import signal
|
import signal
|
||||||
|
import platform
|
||||||
|
|
||||||
STATUS_LINE_REGEX = r'[ACDIMRX?!~ ][CM ][L ][+ ][SX ][KOTB ]..(.+)'
|
STATUS_LINE_REGEX = r'[ACDIMRX?!~ ][CM ][L ][+ ][SX ][KOTB ]..(.+)'
|
||||||
|
|
||||||
@ -1491,8 +1492,12 @@ def do_cmd(argv, realsvn, config, expand=True):
|
|||||||
pager_proc.wait()
|
pager_proc.wait()
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
|
# Determine the name of the real svn binary
|
||||||
|
svn_bin_name = 'svn'
|
||||||
|
if platform.system() == 'Windows':
|
||||||
|
svn_bin_name = 'svn.exe'
|
||||||
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||||
realsvn = find_in_path('svn')
|
realsvn = find_in_path( svn_bin_name )
|
||||||
config = get_config(realsvn)
|
config = get_config(realsvn)
|
||||||
if config['svn']:
|
if config['svn']:
|
||||||
realsvn = config['svn']
|
realsvn = config['svn']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user