Re-tagged blog posts

This commit is contained in:
Brandon Rozek 2022-01-02 14:24:29 -05:00
parent 209995c77b
commit 2a9c127365
186 changed files with 186 additions and 146 deletions

View file

@ -2,7 +2,7 @@
title: "Detect Python Version"
date: 2021-03-15T18:09:38-04:00
draft: false
tags: []
tags: ["Python"]
---
I was working on a distribution recently where `python` was mapped to `python2`. It mixed me up for a bit since I was writing a script for `python3` but it ran partially under `python2`. To lower confusion in the future, I think it's a great idea to check the python version and exit if it isn't the version you expect.