4 ms·
Thanks. One of the (personal) goals for this was to keep it simple all in one file (that's why the code is 540 lines with comments and help and license text) an
by devnonymous 9y ago
Thanks. One of the (personal) goals for this was to keep it simple all in one file (that's why the code is 540 lines with comments and help and license text) and be dependent only on the stdlib.
This lets me just copy it over (using the bash function I have shown in the demo) everywhere I ssh without having to pip install anything. Additionally it just works out of the box for any virtualenv ...even something created with mktmpenv.
Of course, if someone doesn't feel the same, they are encouraged to make this their own ! I've put in effort to ensure the code is easy to read and modify.
- sashk 9y agoyou can always hide colorama's import and initialization behind try: except ImportError block, which will allow it to work when it's available, and skip when it's not.