parameters: ()
return_statement: return EMSCRIPTEN_TEMP_DIR
docstring: Returns a path to EMSCRIPTEN_TEMP_DIR, creating one if it didn't exist.
docstring_summary: Returns a path to EMSCRIPTEN_TEMP_DIR, creating one if it didn't exist.
docstring_tokens: Returns a path to EMSCRIPTEN_TEMP_DIR creating one if it didn t exist .
function: def get_emscripten_temp_dir():
    """Returns a path to EMSCRIPTEN_TEMP_DIR, creating one if it didn't exist."""
    global configuration, EMSCRIPTEN_TEMP_DIR
    if not EMSCRIPTEN_TEMP_DIR:
      EMSCRIPTEN_TEMP_DIR = tempfile.mkdtemp(prefix='emscripten_temp_', dir=configuration.TEMP_DIR)
  
      if not DEBUG_SAVE:
        def prepare_to_clean_temp(d):
          def clean_temp():
            try_delete(d)
  
          atexit.register(clean_temp)
        # this global var might change later
        prepare_to_clean_temp(EMSCRIPTEN_TEMP_DIR)
    return EMSCRIPTEN_TEMP_DIR
function_tokens: def get_emscripten_temp_dir ( ) : global configuration , EMSCRIPTEN_TEMP_DIR if not EMSCRIPTEN_TEMP_DIR : EMSCRIPTEN_TEMP_DIR = tempfile . mkdtemp ( prefix = 'emscripten_temp_' , dir = configuration . TEMP_DIR ) if not DEBUG_SAVE : def prepare_to_clean_temp ( d ) : def clean_temp ( ) : try_delete ( d ) atexit . register ( clean_temp ) # this global var might change later prepare_to_clean_temp ( EMSCRIPTEN_TEMP_DIR ) return EMSCRIPTEN_TEMP_DIR