Skip to content

Instantly share code, notes, and snippets.

@gihankarunarathne
Forked from dmgl/idle.py
Last active August 29, 2015 14:23
#!/usr/bin/env python
from idlelib.PyShell import main
if __name__ == '__main__':
main()
#!/bin/bash
# This hook is run after a new virtualenv is created and before it is activated.
# argument: name of new environment
cp /path_to_idle/idle.py $1/bin/
# after command $ source bin/activate in ENV
(ENV)user@system:~/pathtoenv$ cd bin/
# copy idle.py to virtualenv bin/ path, pun
(ENV)user@system:~/pathtoenv$ idle.py
# or use premkvirtualenv file with virtualenvwrapper
# no need to copy idle.py each time before make env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment