[Tutor] Lost Modules?

Thomi Richards thomi@thomi.imail.net.nz
Tue, 27 Aug 2002 00:13:16 +1200


heres two files, in the SAME directory, the first is the module, the
second is the file:

----------------<mymod.py>-----------
#!/usr/bin/python

def test():
	echo "blah blah blah"

-------------------------------------

--------------<test.py>--------------

import sys
import os
sys.path.append(os.getcwd())

import mymod

mymod.test()

echo "see?"
-----------------------------------

Note that i HAVE NOT tested this, so it may not work... don't blame me
if it blows up your computer, car, house, dog, or any other posseson
-- 
 "Avoid the Gates of Hell.  Use Linux"

Thomi Richards,
thomi@imail.net.nz