I have a file called foobar (without .py extension). In the same directory I have another python file that tries to import it:
import foobar
But this only works if I rename the file to foobar.py. Is it possible to import a python module that doesn't have the .py extension?
Update: the file has no extension because I also use it as a standalone script, and I don't want to type the .py extension to run it.
Update2: I will go for the symlink solution mentioned below.
pyextension? – voyager Apr 8 '10 at 16:52pyshextension... – osa Jul 11 '14 at 21:43ConfigParser. wiki.python.org/moin/ConfigParserExamples – Chemical Programmer Nov 23 '15 at 7:53