Re: Using sh library with grep command

2013-11-23 Thread Luca Fabbri
On Sat, Nov 23, 2013 at 5:29 PM, Peter Otten <__pete...@web.de> wrote: > Luca wrote: > >> I'm trying to use sh (https://pypi.python.org/pypi/sh) for calling >> system grep command but it's now working as expected. >> >> An example: >> >> import sh >> sh.grep('abc', os.getcwd(), '-r') >> >>

How to know if a file is a text file

2009-11-14 Thread Luca Fabbri
Hi all. I'm looking for a way to be able to load a generic file from the system and understand if he is plain text. The mimetype module has some nice methods, but for example it's not working for file without extension. Any suggestion? -- -- luca -- http://mail.python.org/mailman/listinfo/pyth

Re: Need help for my system python

2009-11-08 Thread Luca Fabbri
SOLVED. For some reason a "zope" directory were inside my site-packages folder, so the zope.interface egg was not visible... On Sun, Nov 8, 2009 at 4:57 PM, Luca Fabbri wrote: > Hi all. > > I've recently updated my system to the last Kubuntu 9.10. > > On my syst

Need help for my system python

2009-11-08 Thread Luca Fabbri
Hi all. I've recently updated my system to the last Kubuntu 9.10. On my system I use: python2.6 (default system python) python 2.4 (needed for the Zope application server) Also I have 2 easy_install script for installing my eggs. The default one for python2.6 works normally, but I've some probl

Cannot upload a good egg on pypi

2009-10-13 Thread Luca Fabbri
Hi all. I've problems while using setuptools for getting an egg and upload it on pypi. The egg (in bdist_egg or sdist format) are always "corrupted" as far as a lot of files are not included in the zip, tar.gz or egg results. Looking at google it seems that this problem has been fixed (related to