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 abc import ABC, abstractmethod | |
| from beeprint import pp | |
| """ | |
| There may be a better more pythonic way of doing this, | |
| I am not sure. | |
| I spent a few days trying variuous methods and this was what worked the best | |
| and was the most easy to understand and implement. | |
| There are probably only a few use cases where this is needed. |
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
| """ | |
| Here are all subprocess, threading etc related utilities, | |
| most of them quite low level. | |
| """ | |
| from threading import Lock, currentThread | |
| import sys | |
| import os | |
| from StringIO import StringIO |