Prepend '~' to the sys.path so that ~/utils.py takes precedence.
llvm-svn: 141817
This commit is contained in:
parent
c53220134a
commit
724e62bb4a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue