diff --git a/script/python b/script/python index 53155cf..41417fd 100644 --- a/script/python +++ b/script/python @@ -9,6 +9,11 @@ if (python(1) == 1) @ dir = before(-1 / $word(1 $loadinfo())) python if '$dir' not in sys.path: sys.path.append\('$dir'\) + # Add load_path to sys.path + fe ($split(: $load_path)) path { + python if '$path' not in sys.path: sys.path.append\('$path'\) + } + # Setup some helpful aliases alias pyecho {echo $python($*)} alias pyload {python import $*}