just a straight execution of gvim from python for now
This commit is contained in:
parent
545ce108f1
commit
c11a4fe8ca
@ -1,10 +1,12 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
GVIM_PATH = 'C:\\apps\\Vim\\vim73\\gvim.exe'
|
||||
|
||||
def main(argv):
|
||||
fh = open('C:\\out.txt', 'w')
|
||||
fh.write('called with args: "%s"\n' % ', '.join(argv))
|
||||
fh.close()
|
||||
if (len(argv) < 2):
|
||||
return -1
|
||||
os.execv(GVIM_PATH, ['gvim'] + argv[1:])
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv))
|
||||
|
Loading…
x
Reference in New Issue
Block a user