Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (28 sloc) 0.918 kB
#!/usr/bin/env python
# -*-python-*-
"""
Data transfer tool for Couchbase.
"""
import os
import platform
import sys
try:
import pump_sfd
except ImportError:
if platform.system() == "Windows":
p = "PATH"
else:
p = "LD_LIBRARY_PATH"
for x in sys.argv:
if x.startswith("couchstore-files://"):
sys.exit("error: could not import couchstore module"
"; directly accessing local couchstore-files:// will not work"
"; please check your PYTHONPATH and %s environment variables" % (p))
import pump_transfer
if __name__ == '__main__':
if platform.system() == 'Windows':
mydir = os.path.dirname(sys.argv[0])
bin_dir = os.path.join(mydir, '..')
path = [mydir, bin_dir, os.environ['PATH']]
os.environ['PATH'] = ';'.join(path)
pump_transfer.exit_handler(pump_transfer.Transfer().main(sys.argv))
Jump to Line
Something went wrong with that request. Please try again.