code: def escapePathForShell(path):
  		
  		if platform.system() == 'Windows':
  			return '"{}"'.format(path.replace('"', '""'))
  		else:
  			return shellescape.quote(path)
docs: Escapes a filesystem path for use as a command-line argument