[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Question about private modules in /usr/share



On 21 Apr 2015, at 7:01 pm, Piotr Ożarowski <piotr@debian.org> wrote:
> 
> [Potter, Tim (Cloud Services), 2015-04-21]
>> binary gives an import error since /usr/share/dwarf isn’t in the PYTHONPATH:
>> 
>> # dwarf
>> Traceback (most recent call last):
>>  File "/usr/bin/dwarf", line 32, in <module>
>>    from dwarf import log   # pylint: disable=W0611
>> ImportError: No module named dwarf
> 
> binary and module name are the same so distutils decided to copy script
> to module dir:
> 
> | running install_scripts
> | copying build/scripts-2.7/dwarf -> debian/dwarf/usr/share/dwarf/dwarf
> | copying build/scripts-2.7/dwarf-manage -> debian/dwarf/usr/share/dwarf
> 
> mv debian/dwarf/usr/share/dwarf/dwarf debian/dwarf/usr/share/dwarf/run
> in your install override, update symlink in debian/links and it should
> work

Hi Piotr.  Thanks a lot!  I figured it out based on your comments.


Tim.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Reply to: