def getTempMarkdownPreviewPath(view):
 settings = sublime.load_settings('MarkdownPreview.sublime-settings')
 tmp_filename = ('%s.html' % view.id())
 tmp_dir = tempfile.gettempdir()
 if settings.get('path_tempfile'):
  if os.path.isabs(settings.get('path_tempfile')):
   tmp_dir = settings.get('path_tempfile')
  else:
   tmp_dir = os.path.join(os.path.dirname(view.file_name()), settings.get('path_tempfile'))
 if (not os.path.isdir(tmp_dir)):
  os.makedirs(tmp_dir)
 tmp_fullpath = os.path.join(tmp_dir, tmp_filename)
 return tmp_fullpath

def getTempMarkdownPreviewPath ( view ) : settings = sublime . load_settings ( 'MarkdownPreview.sublime-settings' ) tmp_filename = ( '%s.html' % view . id ( ) ) tmp_dir = tempfile . gettempdir ( ) if settings . get ( 'path_tempfile' ) : if os . path . isabs ( settings . get ( 'path_tempfile' ) ) : tmp_dir = settings . get ( 'path_tempfile' ) else : tmp_dir = os . path . join ( os . path . dirname ( view . file_name ( ) ) , settings . get ( 'path_tempfile' ) ) if ( not os . path . isdir ( tmp_dir ) ) : os . makedirs ( tmp_dir ) tmp_fullpath = os . path . join ( tmp_dir , tmp_filename ) return tmp_fullpath
return a permanent full path of the temp markdown preview file .