#!@PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: xpak 3483 2006-06-10 21:40:40Z genone $

import sys, os
if len(sys.argv)!=3:
	print "xpak: expecting three arguments."
	sys.exit(1)

try:
	import portage.xpak
except ImportError:
	from os import path as osp
	sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
	import portage.xpak

portage.xpak.xpak(sys.argv[1],sys.argv[2])
