summaryrefslogtreecommitdiffstats
path: root/bin/xpak
blob: 4fc1eb9fb8a542ac4013ac64bd1e4a16641e805c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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

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

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