Prepend '~' to the sys.path so that ~/utils.py takes precedence.

llvm-svn: 141817
This commit is contained in:
Johnny Chen 2011-10-12 21:51:58 +00:00
parent c53220134a
commit 724e62bb4a
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
script import os, sys
script sys.path.append(os.path.expanduser('~'))
# So that ~/utils.py takes precedence.
script sys.path[:0] = [os.path.expanduser('~')]
script import utils
command alias pwd script print os.getcwd()
command script add -f utils.chdir cd