I am reading through some code and was trying to look where the files where imported from. I read through this thread Retrieving python module path and so I tried
print _init_paths.__file__
which worked. But when I tried
print fast_rcnn.train.__file__
I get an error saying NameError: name 'fast_rcnn' is not defined. Note that the following 3 lines below have no errors i.e. the files have been successfully imported.
import _init_paths
from fast_rcnn.train import get_training_roidb, train_net
from fast_rcnn.config import cfg, cfg_from_file, cfg_from