Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request boriel-basic#611 from boriel/feature/add_executabl…
Browse files Browse the repository at this point in the history
…e_path_to_sys_path

feat: append executable path to sys.path
  • Loading branch information
boriel committed May 23, 2022
2 parents 5799d6f + 92c8e18 commit a4f8525
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
5 changes: 4 additions & 1 deletion zxb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
# vim: ts=4:sw=4:et:

import sys
import os

from src import zxbc
sys.path.append(os.path.dirname(__file__))

from src import zxbc # noqa: E402

if __name__ == "__main__":
print("-" * 48 + "\n* WARNING: zxb is deprecated! Use zxbc instead *\n" + "-" * 48, file=sys.stderr)
Expand Down
6 changes: 5 additions & 1 deletion zxbasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# ----------------------------------------------------------------------

import sys
from src import zxbasm
import os

sys.path.append(os.path.dirname(__file__))

from src import zxbasm # noqa: E402

if __name__ == "__main__":
sys.exit(zxbasm.main())
5 changes: 4 additions & 1 deletion zxbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
# vim: ts=4:sw=4:et:

import sys
import os

from src import zxbc
sys.path.append(os.path.dirname(__file__))

from src import zxbc # noqa: E402

if __name__ == "__main__":
sys.exit(zxbc.main()) # Exit
6 changes: 5 additions & 1 deletion zxbpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# ----------------------------------------------------------------------

import sys
from src import zxbpp
import os

sys.path.append(os.path.dirname(__file__))

from src import zxbpp # noqa: E402

if __name__ == "__main__":
sys.exit(zxbpp.entry_point())

0 comments on commit a4f8525

Please sign in to comment.