How to import from saved QPython file?

1.2k views Asked by At

With QPython on Kindle fire .. I use QEdit to write & save a .py file .. say bob.py ..

But when I switch to Console, I can't IMPORT from bob ..

Can someone tell me how to do this?

John (new to QPython)

2

There are 2 answers

1
JOHN MCNALLY On

The comment from Yulia V got me thinking, maybe I just needed to append the location of "Scripts" to the sys.path, and Yep, that worked fine!!

Thanks Yulia!

0
River On

I think you can save the module file into the same directory which you script locates or /sdcard/com.hipipal.qpyplus/lib/python2.7/site-packages/