Re: Rawhide NetworkManager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2005-03-22 at 20:33 +0100, Ralf Ertzinger wrote:
> Hi.
> 
> Dan Williams <dcbw@xxxxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux