Ejemplo n.º 1
0
 def __del__(self):
     emtraffic.global_end()
Ejemplo n.º 2
0
 def __del__(self):
     emtraffic.global_end()
Ejemplo n.º 3
0
if not os.path.exists("PPPManager"):
	sys.path.append(os.path.join(os.path.dirname(sys.argv[0]),"../backend"))

import MSD     

sys.path.append(MSD.msd_eggs_dir)

def main():
	# register the gettext function for the whole interpreter as "_"
	__builtin__._ = gettext.gettext
	
	#creo el lock
	f = None
	try:
		f = open(MSD.lock_file,"w")
		f.write("%s" % os.getpid())
	finally:
		if f is not None:
			f.close()
			
        x = MSD.MSDMainWindow()
        gtk.main()

if __name__ == '__main__':
    emsync.global_init()
    emtraffic.global_init()
    main()
    emtraffic.global_end()
    emsync.global_end()