[Tutor] Importing a module I made
Magnus Lycka
magnus@thinkware.se
Mon Jan 13 12:34:43 2003
At 15:53 2003-01-13 +0000, Shey Crompton wrote:
>Thanks for the top tips.
>
>I'm going with the Lib\site-packages\... option and seeing if I can get used
>to working that way.
>Just to clarify slightly if I put an empty file titled __init__.py in my
>(now) PythonStuff folder that will enable me to import a file by typing
>import PythonStuff.FileName. Is that correct?
Yes, if the PythonStuff folder is below site-packages or any
other path in Python's sys.path. See
http://www.python.org/doc/current/tut/node8.html
--
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se