willowgarage/catkin — Issue #48: Invalid __init__.py thunker generated
Author: kwc
Created: 2012-01-06 03:19:18+00:00
State: open

Filing here -- haven't figure out conditions in which this occurred, but not the __extended_path is empty, which means this thunker generates an infinite import loop.

```
from pkgutil import extend_path
import sys, os
__extended_path = ""
sys.path += [__extended_path]
__path__ = extend_path(__path__, __name__)

import os.path
src_init_file = os.path.join(__extended_path, __name__ + '.py')
if os.path.isfile(src_init_file):
execfile(src_init_file)
else:
src_init_file = os.path.join(__extended_path, __name__, '__init__.py')
if os.path.isfile(src_init_file):
execfile(src_init_file)
```