Skip to content

Commit

Permalink
fix: Creating stubs with relative paths for source and output directo…
Browse files Browse the repository at this point in the history
…ries (#128)

Closes #125

### Summary of Changes

Fixed a bug where the stub generator would not run or run buggy with
relative paths as source and / or output directories.
  • Loading branch information
Masara authored May 4, 2024
1 parent ff1800e commit b4493c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/safeds_stubgen/api_analyzer/cli/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def cli() -> None:
if args.verbose:
logging.basicConfig(level=logging.INFO)

_run_stub_generator(args.src, args.out, args.docstyle, args.testrun, args.naming_convert)
_run_stub_generator(args.src.resolve(), args.out.resolve(), args.docstyle, args.testrun, args.naming_convert)


def _get_args() -> argparse.Namespace:
Expand Down

0 comments on commit b4493c9

Please sign in to comment.