On Tue, 2005-03-22 at 20:33 +0100, Ralf Ertzinger wrote:
Hi.
Dan Williams <dcbw(a)redhat.com> wrote:
> Ok, next question is:
>
> 1) How do you know which profile is begin used at any given time?
Like this:
#!/usr/bin/python
import sys
if not "/usr/share/system-config-network" in sys.path:
sys.path.append("/usr/share/system-config-network")
if not "/usr/share/system-config-network/netconfpkg/" in sys.path:
sys.path.append("/usr/share/system-config-network/netconfpkg")
from netconfpkg import *
print getProfileList().getActiveProfile().ProfileName;
Need some way to do it from C, preferably without 'popen("profile-
check.py")' :)
Dan