provide 'do', 'Popen', and 'PIPE' to user-defined functions in configuration files - closes #11
This commit is contained in:
parent
761d26a5c6
commit
70e1f4edb5
9
jsvn
9
jsvn
@ -1120,6 +1120,15 @@ def main(argv):
|
|||||||
if config['svn']:
|
if config['svn']:
|
||||||
realsvn = config['svn']
|
realsvn = config['svn']
|
||||||
|
|
||||||
|
# set up execution environment for user-defined function aliases
|
||||||
|
def do(cmd, expand=True):
|
||||||
|
if type(cmd) == types.StringType:
|
||||||
|
cmd = [cmd]
|
||||||
|
do_cmd(cmd, realsvn, config, expand)
|
||||||
|
config['do'] = do
|
||||||
|
config['Popen'] = Popen
|
||||||
|
config['PIPE'] = PIPE
|
||||||
|
|
||||||
do_cmd(argv, realsvn, config)
|
do_cmd(argv, realsvn, config)
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user