This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Environment variable context manager | |
------------------------------------ | |
Support utility for managing environments in which e.g. git is run | |
""" | |
import os | |
from contextlib import contextmanager | |
from functools import wraps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import threading | |
import time | |
class cSpinner(threading.Thread): | |
""" | |
Print things to one line dynamically | |
""" | |
chars = ["\\","|","/","-"] | |
index = 0 |