Skip to content

Instantly share code, notes, and snippets.

@aaltat
aaltat / py_finder.py
Last active March 2, 2020 00:03
Find files which are not Python 3 compatible
import argparse
import subprocess
from pathlib import Path
def find_files(src_root: Path, python3: Path):
not_py3_compatible = []
for file in src_root.rglob('*.py'):
print(file.resolve())