def sublime_format_path(pth):
 m = re.match('^([A-Za-z]{1}):(?:/|\\\\)(.*)', pth)
 if ((sublime.platform() == 'windows') and (m is not None)):
  pth = ((m.group(1) + '/') + m.group(2))
 return pth.replace('\\', '/')

def sublime_format_path ( pth ) : m = re . match ( '^([A-Za-z]{1}):(?:/|\\\\)(.*)' , pth ) if ( ( sublime . platform ( ) == 'windows' ) and ( m is not None ) ) : pth = ( ( m . group ( 1 ) + '/' ) + m . group ( 2 ) ) return pth . replace ( '\\' , '/' )
format path for sublime internally .