amoffat/pbs — Issue #30: Reload pbs error
Author: amoffat
Created: 2012-02-03 19:18:59+00:00
State: open
Labels: bug, revision

The problem exists when you try to reload pbs:

```python
import pbs
reload(pbs)
```

You get

TypeError: reload() argument must be module

This is because the SelfWrapper, which does the dynamic lookups, isn't a subclass of the module type. @nemec has implemented the dynamic lookup with import hooks here 071a98b40fb564cba352b7e2d4281b35c83240ca, which is probably the more pythonic way of doing this.