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 functools | |
from events import Events # Note you must pip install events | |
class set_event: | |
"""Define a class-based setter method decorator.""" | |
def __init__(self, func, event): | |
super().__init__() |
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
#!/usr/bin/env bash | |
# This hook is run after a new virtualenv is activated. | |
#set -e # abort after any errors | |
#set -u # exit after accessing an undefined variable | |
libs=(PyQt4 sip.so sipconfig.py) | |
python_version=python$(python -c "import sys; print (str(sys.version_info[0])+'.'+str(sys.version_info[1]))") | |
var=( $(which -a ${python_version}) ) |