Blocking code

2010-01-15 Thread eric.frederich
I am trying to write something that will watch directories without poling them. This is what FAM is fore. Gamin is a re-implementation of FAM and it has python bindings. The problem is that when I call handle_one_event() it blocks until there is an event to handle. Pressing Ctrl-C does nothing he

Python without wrapper script

2009-12-02 Thread eric.frederich
Is there a way to set up environment variables in python itself without having a wrapper script. The wrapper script is now something like #!/bin/bash export LD_LIBRARY_PATH="/some/thing/lib:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH="/another/thing/lib:$LD_LIBRARY_PATH" export PATH="/some/thi

Re: Split class across multiple files

2009-11-20 Thread eric.frederich
n ret On Nov 20, 11:31 am, "Diez B. Roggisch" wrote: > eric.frederich schrieb: > > > I have a class which holds a connection to a server and a bunch of > > services. > > In this class I have methods that need to work with that connection > > and services. &g

Split class across multiple files

2009-11-20 Thread eric.frederich
I have a class which holds a connection to a server and a bunch of services. In this class I have methods that need to work with that connection and services. Right now there are about 50 methods some of which can be quite long. >From an organizational standpoint, I'd like to have method implement