mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-28 07:43:55 +01:00
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:
parent
d0e5957ec8
commit
98188eab23
3 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
TOPDIR = ..
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
EXE_SH += $(wildcard jannet jcs)
|
||||
DONT_INSTALL = __init__.py
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
include $(JWBDIR)/make/scripts.mk
|
||||
|
|
|
|||
2
scripts/__init__.py
Normal file
2
scripts/__init__.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import sys, os
|
||||
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '/../src/python'))
|
||||
|
|
@ -1 +0,0 @@
|
|||
../src/python/jw
|
||||
Loading…
Add table
Add a link
Reference in a new issue