import ConfigParser

def get_package_name(config_file):
    config = ConfigParser.ConfigParser()
    config.read(config_file)
    egg = config.get("app:main", "use")
    package = egg.split(":")[1]
    return package
