summaryrefslogtreecommitdiff
path: root/geneticone/backend/__init__.py
diff options
context:
space:
mode:
authornecoro <>2006-09-29 19:15:41 +0000
committernecoro <>2006-09-29 19:15:41 +0000
commit74e6944a93674636b9ae5826a27218c30be335b5 (patch)
tree6ca9009eb1cebbffb45c2c103add5ac05cebb8ea /geneticone/backend/__init__.py
parent196d7959b4a28cce680154277a764d8799238453 (diff)
downloadportato-74e6944a93674636b9ae5826a27218c30be335b5.tar.gz
portato-74e6944a93674636b9ae5826a27218c30be335b5.tar.bz2
portato-74e6944a93674636b9ae5826a27218c30be335b5.zip
Moved backend stuff into own backend-package
Diffstat (limited to 'geneticone/backend/__init__.py')
-rw-r--r--geneticone/backend/__init__.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/geneticone/backend/__init__.py b/geneticone/backend/__init__.py
new file mode 100644
index 0000000..2478ddf
--- /dev/null
+++ b/geneticone/backend/__init__.py
@@ -0,0 +1,32 @@
+#
+# File: geneticone/__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 helper import *
+from exceptions import *
+from portage_helper import *
+from package import *