Skip to content

Instantly share code, notes, and snippets.

#!/bin/python
from __future__ import print_function # python >= 2.6
import glob
from os import chdir, listdir, makedirs, path, name as os_name, \
linesep as os_linesep, sep as os_sep
from subprocess import Popen, PIPE, call
from sys import exit as sys_exit, stderr
from pprint import pprint
from threading import Timer