summaryrefslogtreecommitdiff
path: root/geneticone/backend/__init__.py
blob: 16c3a2e693dd400fe3e3e87d414d8d24f5c95a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# File: geneticone/backend/__init__.py
# This file is part of the Genetic/One-Project, a graphical portage-frontend.
#
# Copyright (C) 2006 Necoro d.M.
# This is free software.  You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
#
# Written by Necoro d.M. <necoro@necoro.net>

import sys

# insert the gentoolkit-location into syspath
sys.path.insert(0, "/usr/lib/gentoolkit/pym")

# import gentoolkit and portage
import gentoolkit
import portage

# this is set to "var/lib/portage/world" by default - so we add the leading /
portage.WORLD_FILE = "/"+portage.WORLD_FILE

# portage tree vars
porttree = gentoolkit.porttree
vartree = gentoolkit.vartree

# import our packages
from exceptions import *
from package import *
from portage_helper import *