Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import os
import re
import sys
def get_new_path(path):
# find the number in the filename, looks like "#5"
filename = os.path.basename(path)