#!/usr/bin/env python
import sys, os, struct, getopt, subprocess, signal
-from bup import options, ssh
+from bup import options, ssh, path
from bup.helpers import *
optspec = """
p.stdin.write(struct.pack('!I', len(argvs)) + argvs)
p.stdin.flush()
- main_exe = os.environ.get('BUP_MAIN_EXE') or sys.argv[0]
- sp = subprocess.Popen([main_exe, 'server'], stdin=p.stdout, stdout=p.stdin)
-
+ sp = subprocess.Popen([path.exe(), 'server'],
+ stdin=p.stdout, stdout=p.stdin)
p.stdin.close()
p.stdout.close()