c0eeffc52b
- fix high CPU usage - code cleanup - code refresh git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2539 cd1c1023-2f26-0410-ae45-c471fc1f0318
36 lines
791 B
Python
Executable File
36 lines
791 B
Python
Executable File
#!/usr/bin/python
|
|
#
|
|
# This file is a portion of the Red Hat Network Panel Applet
|
|
#
|
|
# Copyright (C) 1999-2002 Red Hat, Inc. All Rights Reserved.
|
|
# Distributed under GPL version 2.
|
|
#
|
|
# $Id: applet.py,v 1.10 2003/09/15 15:07:19 veillard Exp $
|
|
|
|
import sys,os
|
|
import signal
|
|
sys.path.insert(0,'/usr/lib/entropy/client')
|
|
sys.path.insert(0,'/usr/lib/entropy/libraries')
|
|
sys.path.insert(0,'/usr/lib/entropy/spritz')
|
|
sys.path.insert(0,'../../client')
|
|
sys.path.insert(0,'../../libraries')
|
|
sys.path.insert(0,'../../spritz/src')
|
|
sys.path.insert(0,'../')
|
|
sys.argv.append('--no-pid-handling')
|
|
|
|
try:
|
|
os.nice(10)
|
|
except:
|
|
pass
|
|
|
|
import etp_applet
|
|
|
|
def main():
|
|
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
|
applet = etp_applet.rhnApplet()
|
|
applet.run()
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|