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

Re: getting a python module accepted by python?



* Sean 'Shaleh' Perry 

| Is there a way to make a site-packages/foo/foo.py without requiring a change
| in programs calling foo?

Have site-packages/foo.py exist and do 'import foo.foo'.

| Also, sorry to get off topic, but should the postinst compile the module?

yes, afaik.

| Won't this happen the first time the module is imported?

No, not if the user doesn't have write access to where the module is
located.  Which she usually doesn't have.

-- 

Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.



Reply to: