<s> import os <EOL> import site <EOL> import sys <EOL> prev_sys_path = list ( sys . path ) <EOL> site . addsitedir ( os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) ) ) <EOL> site . addsitedir ( os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' % '<STR_LIT:.>' . join ( ( unicode ( x ) for x in sys . version_info [ <NUM_LIT:0> : <NUM_LIT:2> ] ) ) ) ) ) <EOL> new_sys_path = [ ] <EOL> for item in list ( sys . path ) : <EOL> if item not in prev_sys_path : <EOL> new_sys_path . append ( item ) <EOL> sys . path . remove ( item ) <EOL> sys . path [ : <NUM_LIT:0> ] = new_sys_path <EOL> from django . core . management import execute_manager <EOL> try : <EOL> from bugle_project . configs import settings <EOL> except ImportError : <EOL> import sys <EOL> sys . stderr . write ( "<STR_LIT>" % __file__ ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> execute_manager ( settings ) </s>
