All pastes #196426 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-10-10 16:09 UTC
rendered paste body
$ cd /tmp
$ mkdir pouet
$ touch pouet/__init__.py
$ echo "a=42" > pouet/truc.py
$ python -c "from pouet.truc import a; print a"
42
$ pydoc __import__
$ python -c "m = __import__('pouet.truc'); print m.truc.a"
42