From 98188eab23fb05ca8ea5d59715af41c4895ed14e Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 19 Jan 2026 13:20:14 +0100 Subject: [PATCH] scripts: Add __init__.py $(TOPDIR)/scripts contains a symbolic link jw -> ../src/python/jw, to allow jw-python.py access to the in-repo module jw.pkg. Should be fine now even on Windows, OTOH, it's also solvable via __init__.py, so do that. Signed-off-by: Jan Lindemann --- scripts/Makefile | 4 +++- scripts/__init__.py | 2 ++ scripts/jw | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 scripts/__init__.py delete mode 120000 scripts/jw diff --git a/scripts/Makefile b/scripts/Makefile index 44e2f969..4fad74a0 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -1,5 +1,7 @@ TOPDIR = .. +EXE_SH += $(wildcard jannet jcs) +DONT_INSTALL = __init__.py + include $(TOPDIR)/make/proj.mk -EXE_SH += $(wildcard jannet jcs) include $(JWBDIR)/make/scripts.mk diff --git a/scripts/__init__.py b/scripts/__init__.py new file mode 100644 index 00000000..9ae12617 --- /dev/null +++ b/scripts/__init__.py @@ -0,0 +1,2 @@ +import sys, os +sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '/../src/python')) diff --git a/scripts/jw b/scripts/jw deleted file mode 120000 index b4710af0..00000000 --- a/scripts/jw +++ /dev/null @@ -1 +0,0 @@ -../src/python/jw \ No newline at end of file