Rawhide NetworkManager
Dan Williams
dcbw at redhat.com
Tue Mar 22 20:38:49 UTC 2005
On Tue, 2005-03-22 at 20:33 +0100, Ralf Ertzinger wrote:
> Hi.
>
> Dan Williams <dcbw at 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
More information about the devel
mailing list