This file contains hidden or 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
#! /usr/bin/python | |
import sys | |
from pathlib import Path | |
__doc__ = """Print the path of the activate script for a venv found in the current | |
directory or an ancestor directory. Intended use is to put this in your $PATH and add a | |
function to your bashrc like: | |
activate(){ | |
activate_script="$(find-venv-activate)" || return |
This file contains hidden or 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
from subprocess import check_output, check_call | |
import sys | |
USAGE = """Error: invalid arguments. | |
usage: python delete_branches.py local_repository [remote] | |
remote defaults to 'origin' if not given.""" | |
try: | |
REPO = sys.argv[1] | |
except IndexError: |
This file contains hidden or 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 argparse | |
from subprocess import check_call | |
REPOS = [ | |
'blacs', | |
'labscript', | |
'labscript_devices', | |
'labscript_utils', | |
'lyse', | |
'runmanager', |