def load_context(context):
 file_path = _get_context_filepath()
 if os.path.exists(file_path):
  with io.open(file_path, encoding='utf-8') as f:
   for line in f:
    execute(line, context)

def load_context ( context ) : file_path = _get_context_filepath ( ) if os . path . exists ( file_path ) : with io . open ( file_path , encoding = 'utf-8' ) as f : for line in f : execute ( line , context )
load a context object in place from user data directory .