David,

On Tue, 2012-09-25 at 16:32 -0400, David Malcolm wrote: 
> 
> Almost certainly a bad idea, but FWIW it is possible, using the
> __import__ builtin:
> 
> # mkdir "/usr/lib64/python2.7/site-packages/this module has a space"
> 
> # echo "print('hello world')" > "/usr/lib64/python2.7/site-packages/this
> module has a space/__init__.py"
> 
> # ls /usr/lib64/python2.7/site-packages/this\ module\ has\ a\
> space/__init__.py 
> /usr/lib64/python2.7/site-packages/this module has a space/__init__.py
> 
> # python -c "__import__('this module has a space')"
> hello world

thank you for this detailed explanation.

> But yeah, don't do that :)

I'm trying to package an open source data mining program Orange
(http://orange.biolab.si/).
Apparently, they are using spaces in one of their packages:
https://bitbucket.org/biolab/orange/src/3db591b97b0c/orange/OrangeWidgets/Visualize%20Qt
I couldn't find out how they made it to work.

Best regards,
Tadej

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to