summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/examples/customization/pwd-cd-and-system/.lldbinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/examples/customization/pwd-cd-and-system/.lldbinit b/lldb/examples/customization/pwd-cd-and-system/.lldbinit
index d46105ea1b2..f477b5797be 100644
--- a/lldb/examples/customization/pwd-cd-and-system/.lldbinit
+++ b/lldb/examples/customization/pwd-cd-and-system/.lldbinit
@@ -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
OpenPOWER on IntegriCloud