Importing files other than *.py

Ed Leafe ed at leafe.com
Thu Nov 18 19:02:06 EST 2004


	If I have a Python script in a file named "burp.zz", is there any way 
to import it into another script as you can with files named with the 
.py extension?

	I looked at the imp module, but was not able to make it do what I 
wanted. Is this possible, or is the py/pyc extension required?

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://dabodev.com/




More information about the Python-list mailing list