Skip to content

Instantly share code, notes, and snippets.

View notmatthancock's full-sized avatar

Matt Hancock notmatthancock

View GitHub Profile
@notmatthancock
notmatthancock / compiled_file_python_version.py
Created February 8, 2022 01:10 — forked from delimitry/compiled_file_python_version.py
Get the version of Python by which the file was compiled
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A script to get the version of Python by which the file was compiled
"""
from __future__ import print_function
import binascii
import os