FAQ

Unfortunately I have not been able to
work out how to get the imports to work.

import config_script obviously doesn't work and __import__(config_script)
works from the python interpreter but fails in the script (ImportError:
Import by filename is not supported.)
You can use this:

exec("import " + module_name)

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 7 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedJun 20, '11 at 4:13a
activeJun 21, '11 at 12:34a
posts7
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase