Intra-Package References

X

xkenneth

Does your python module have to exist in the path in order for intra-
package references to work?

Regards,
Kenneth Miller
 
G

Gabriel Genellina

Does your python module have to exist in the path in order for intra-
package references to work?

No, but Python must be aware that the importing module is inside a
package. So the script being executed (main) should live outside the
package.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
VetaMcRae
Top