How to import a bunch of functions I typed from within pythonista into another script
Sorry if the question is very basic. Maybe I overlooked something in the documentation.I tried
With no luck, whether the filename was x or x.py does not change a thing.
'import' works propely in my enviroment.
def afunc(): print 'afunc called'
import a a.afunc()
When I try to run b.py, the interpretor stops at "import a" and gives that as an error message:
ImportError: No module named a
Yes that did it! Thanks alot. The strange thing is that I tried that before, but I guess at that time the file I wished to import was still in a sub-folder.