def CallSetAllowedModule(name, desired):
 if (USING_SDK and (name == 'django')):
  sys.path[:] = [dirname for dirname in sys.path if (not dirname.startswith(os.path.join(PYTHON_LIB, 'lib', 'django')))]
  if (desired in ('0.96', '1.2', '1.3')):
   sys.path.insert(1, os.path.join(PYTHON_LIB, 'lib', ('django-' + desired)))
 SetAllowedModule(name)

def CallSetAllowedModule ( name , desired ) : if ( USING_SDK and ( name == 'django' ) ) : sys . path [ : ] = [ dirname for dirname in sys . path if ( not dirname . startswith ( os . path . join ( PYTHON_LIB , 'lib' , 'django' ) ) ) ] if ( desired in ( '0.96' , '1.2' , '1.3' ) ) : sys . path . insert ( 1 , os . path . join ( PYTHON_LIB , 'lib' , ( 'django-' + desired ) ) ) SetAllowedModule ( name )
helper to call setallowedmodule .