#!/usr/bin/python2.7
# vim:filetype=python

import sys
import os.path

# include all directories where migrator source code is located to sys.path
script_dir = os.path.dirname(__file__)
sys.path.extend(os.path.join(script_dir, name) for name in (
	# Necessary to run migrator from sources
	'utils', 'common', 
	'plesk-api', 'poa-api', 'ppab-api', 'expand-api',
	'plesks-migrator', 'expand-migrator', 
	'hsphere-migrator', 'helm-migrator', 'helm3-migrator', 'pbas-migrator', 
	'pmm-unix-migrator',
	'ppcpl-migrator',
	'confixx-migrator',
	'target-panel-plesk', 'target-panel-ppa',
	'hosting-check',

	# Necessary to run migrator on Windows 
	'site-packages'
))

from parallels.common.cli.import_cli import run

if __name__ == '__main__':
	sys.exit(run(script_dir, sys.argv[1:]))

