<s> import os <EOL> from os . path import join , pardir , abspath , dirname , split <EOL> import sys <EOL> from django . core . management import execute_from_command_line <EOL> DJANGO_SETTINGS_MODULE = '<STR_LIT>' % ( split ( abspath ( dirname ( __file__ ) ) ) [ <NUM_LIT:1> ] , '<STR_LIT>' ) <EOL> PYTHONPATH = [ <EOL> abspath ( join ( dirname ( __file__ ) , pardir , pardir ) ) , <EOL> abspath ( join ( dirname ( __file__ ) , pardir ) ) , <EOL> ] <EOL> for p in PYTHONPATH : <EOL> if p not in sys . path : <EOL> sys . path . insert ( <NUM_LIT:0> , p ) <EOL> os . environ [ '<STR_LIT>' ] = DJANGO_SETTINGS_MODULE <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> execute_from_command_line ( ) </s>
