Message144532
It's undocumented that imp.find_module() supports paths with "/" as the first argument:
$ mkdir /tmp/imp_tests
$ cd /tmp/imp_tests
$ mkdir a
$ touch a/b.py
$ python3.3 -c 'import imp; print(imp.find_module("a/b"))'
(<_io.TextIOWrapper name=4 mode='U' encoding='utf-8'>, 'a/b.py', ('.py', 'U', 1)) |
|
Date |
User |
Action |
Args |
2011-09-25 21:05:33 | Arfrever | set | recipients:
+ Arfrever, brett.cannon, ncoghlan, ezio.melotti, docs@python |
2011-09-25 21:05:33 | Arfrever | set | messageid: <1316984733.77.0.135974751185.issue13048@psf.upfronthosting.co.za> |
2011-09-25 21:05:33 | Arfrever | link | issue13048 messages |
2011-09-25 21:05:33 | Arfrever | create | |
|