Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrink10 committed Sep 6, 2024
1 parent 717318b commit 37194b6
Show file tree
Hide file tree
Showing 2 changed files with 398 additions and 140 deletions.
5 changes: 3 additions & 2 deletions src/basilisp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ def _add_import_arg_group(parser: argparse.ArgumentParser) -> None:
type=_to_bool,
help=(
"if true, automatically prepend a potentially unsafe path to `sys.path`; "
"this is the Basilisp equivalent to the PYTHONSAFEPATH environment variable "
"setting `--include-unsafe-path=false` is the Basilisp equivalent to "
"setting PYTHONSAFEPATH to a non-empty string for CPython's REPL "
"(env: BASILISP_INCLUDE_UNSAFE_PATH; default: true)"
),
)
Expand Down Expand Up @@ -622,7 +623,7 @@ def run(
init_path(args)
eval_stream(io.TextIOWrapper(sys.stdin.buffer, encoding="utf-8"), ctx, ns)
else:
init_path(args, unsafe_path=str(pathlib.Path(target).resolve()))
init_path(args, unsafe_path=str(pathlib.Path(target).resolve().parent))
eval_file(target, ctx, ns)


Expand Down
Loading

0 comments on commit 37194b6

Please sign in to comment.