dh_python

2004-07-21 Thread Igor Stroh
Hi there,
my AM pointed me at a possible error source in dh_python:
the code in prerm skeleton[1] tries to delete all *.py[c|o] files
of the appropriate package using xargs. The command used
here might fail if the path of this file contains whitespaces.
I mean I can hardly imagine a situation where a python
package would contain blanks (and blanks in module names
wouldn't work anyway)...
Can anyone think of an example where whitespaces in
package's paths would be valid?
Igor
 [1]:
/usr/share/debhelper/autoscripts/prerm-python



Re: dh_python

2004-07-21 Thread Thomas Viehmann
Igor Stroh wrote:
> Can anyone think of an example where whitespaces in
> package's paths would be valid?
You mean as in the following?
/tmp$ mkdir a\ b
/tmp$ echo > a\ b/x.py
/tmp$ python
Python 2.3.4 (#2, Jul  5 2004, 09:15:05)
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append('/tmp/a b')
>>> import x
>>> x.__file__
'/tmp/a b/x.py'
>>>

Regards

T.
-- 
Thomas Viehmann,