def handle(self, *args, **kwargs):
        path = kwargs['path']

        # With DEBUG on this will DIE.
        settings.DEBUG = False

        if os.path.exists(os.path.join(path, 'tl_2015_us_state')):
            print('Found 2015 files.')
            path = os.path.join(path, 'tl_2015_us_state/tl_2015_us_state.shp')
        elif os.path.exists(os.path.join(path, 'tl_2014_us_state')):
            print('Found 2014 files.')
            path = os.path.join(path, 'tl_2014_us_state/tl_2014_us_state.shp')
        elif os.path.exists(os.path.join(path, 'tl_2013_us_state')):
            print('Found 2013 files.')
            path = os.path.join(path, 'tl_2013_us_state/tl_2013_us_state.shp')
        elif os.path.exists(os.path.join(path, 'tl_2012_us_state')):
            print('Found 2012 files.')
            path = os.path.join(path, 'tl_2012_us_state/tl_2012_us_state.shp')
        elif os.path.exists(os.path.join(path, 'tl_2011_us_state')):
            print('Found 2011 files.')
            path = os.path.join(path, 'tl_2011_us_state/tl_2011_us_state.shp')
        elif os.path.exists(os.path.join(path, 'tl_2010_us_state10')):
            print('Found 2010 files.')
            path = os.path.join(path, 'tl_2010_us_state10/tl_2010_us_state10.shp')
        else:
            print('Could not find files.')
            exit()

        print("Start States: %s" % datetime.datetime.now())
        if path:
            state_import(path)
        print("End States: %s" % datetime.datetime.now())
dataset/ETHPy150Open adamfast/geodjango-tigerline/tigerline/management/commands/load_states.py/Command.handle/original