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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-01-19 13:20:14 +01:00
commit 98188eab23
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,7 @@
TOPDIR = .. TOPDIR = ..
include $(TOPDIR)/make/proj.mk
EXE_SH += $(wildcard jannet jcs) EXE_SH += $(wildcard jannet jcs)
DONT_INSTALL = __init__.py
include $(TOPDIR)/make/proj.mk
include $(JWBDIR)/make/scripts.mk include $(JWBDIR)/make/scripts.mk

2
scripts/__init__.py Normal file
View file

@ -0,0 +1,2 @@
import sys, os
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '/../src/python'))

View file

@ -1 +0,0 @@
../src/python/jw