view contenttransformer/utils.py @ 20:32a05d7bb214

remove hack around downstream snafu (martINI, ConfigParser)
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 25 Nov 2010 11:55:55 -0800
parents 6cbe4172b54b
children 466443d48906
line wrap: on
line source

#!/usr/bin/env python

def import_path(module):
  path = module.split('.')
  module = __import__(path[0])
  for name in path[1:]:
    module = getattr(module, name)
  return module

if __name__ == '__main__':
  import sys
  for i in sys.argv[1:]:
    print import_path(i)