From a6a5cace4864c37b7a820c89540f85069d842521 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Fri, 10 Aug 2007 02:22:40 +0000 Subject: add splash screen --- portato/backend/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'portato/backend/__init__.py') diff --git a/portato/backend/__init__.py b/portato/backend/__init__.py index c3de443..d1d61e8 100644 --- a/portato/backend/__init__.py +++ b/portato/backend/__init__.py @@ -16,14 +16,13 @@ from system_interface import SystemInterface SYSTEM = "portage" # the name of the current system _sys = None # the SystemInterface-instance -class SystemWrapper (object, SystemInterface): +class SystemWrapper (SystemInterface): """This is a wrapper to the different system interfaces, allowing the direct import via C{from portato.backend import system}. With this wrapper a change of the system is propagated to all imports.""" def __getattribute__ (self, name): """Just pass all attribute accesses directly to _sys.""" - global _sys - return eval ("_sys.%s" % name) + return getattr(_sys, name) def set_system (new_sys): """Sets the current system to a new one. -- cgit v1.2.3-54-g00ecf