| 1234567891011121314151617181920212223 | #!/usr/bin/env python3from scriptCommon import catchPathimport osimport subprocess# ---------------------------------------------------# Update code examples# ---------------------------------------------------# For info on mdsnippets, see https://github.com/SimonCropp/MarkdownSnippets# install dotnet SDK from http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409# Then install MarkdownSnippets.Tool with#   dotnet tool install -g MarkdownSnippets.Tool# To update:#   dotnet tool update  -g MarkdownSnippets.Tool# To uninstall (e.g. to downgrade to a lower version)# dotnet tool uninstall -g MarkdownSnippets.Toolos.chdir(catchPath)subprocess.run('dotnet tool update  -g MarkdownSnippets.Tool --version 21.2.0', shell=True, check=True)subprocess.run('mdsnippets', shell=True, check=True)
 |