Created
May 1, 2011 22:18
-
-
Save michaelbartnett/950938 to your computer and use it in GitHub Desktop.
My PYTHONSTARTUP file
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
# Michael's PYTHONSTARTUP file | |
def dofile(filename): | |
import subprocess | |
import sys | |
process = subprocess.Popen([sys.executable, filename], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.STDOUT) | |
out, err = process.communicate() | |
print out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PYTHONSTARTUP
This is my python startup file. Save it to disk and SET the environment variable $PYTHONSTARTUP to this filename.
Functions
dofile(filename)
Arguments