MattsFleaMarket / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

sys.path.insert doesn't seem to have an impact #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a folder pysrc under Scripts in SL4A
2. Create two sub-folders pysrc/uno, pysrc/dos with empty __init__.py
3. Under uno, create test.py, which has:
import sys
sys.path.insert('..')
import dos
4. Run uno.py from SL4A (touch, and press the command line icon)

What is the expected output? What do you see instead?
=>The import should work with no errors, and the script should exit. However, 
we get an ImportError: No module named dos

What version of the product are you using? On what operating system?
python_r16, with sl4a_r4

Please provide any additional information below.

Thank you for your help,

Original issue reported on code.google.com by begin.mi...@gmail.com on 4 Nov 2011 at 5:06