[maemo-developers] Python and ZSI on maemo

From: Martin Grimme martin.grimme at gmail.com
Date: Wed May 6 08:45:34 EEST 2009
Hi,

you should take a look at python-inotify for monitoring the directory,
instead of polling. inotify lets you get notification from the kernel
when a file is written or changed.
Constant polling is bad for battery life anyway.

As for ZSI, installing with distutils should be no problem in
Scratchbox. distutils is part of the Python distribution. You run
"python setup.py install" in the directory where the setup.py for
distutils is located.


Regards,
Martin


2009/5/6, Tim Allen <tim at transtech.net.au>:
> Hi there,
>
> I am trying to write a python script for the N810 which polls a
> directory for files being written by another process and makes web
> service calls, one per file, before deleting the file.
>
> I am having troubles with getting ZSI into the scratchbox.  There seems
> to be a dependency on distutils.
>
> I have managed to install and test ZSI on just straight Ubuntu fine.
>
> Any tips?  Anyone have experience with this?
>
> I'm new to maemo and python so any help appreciated!
>
> Thanks,
> Tim.
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>

More information about the maemo-developers mailing list