From 9b447733fb439177e0a692e777ad9740c38a98f1 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 9 Nov 2023 17:15:08 +0800 Subject: [PATCH] reorg PyBMap files. use correct import statement in module --- BMapBindings/PyBMap/{ => PyBMap}/__init__.py | 0 BMapBindings/PyBMap/{ => PyBMap}/bmap.py | 0 BMapBindings/PyBMap/{ => PyBMap}/bmap_wrapper.py | 2 +- BMapBindings/PyBMap/{ => PyBMap}/virtools_types.py | 0 BMapBindings/PyBMap/README.md | 6 ++++++ 5 files changed, 7 insertions(+), 1 deletion(-) rename BMapBindings/PyBMap/{ => PyBMap}/__init__.py (100%) rename BMapBindings/PyBMap/{ => PyBMap}/bmap.py (100%) rename BMapBindings/PyBMap/{ => PyBMap}/bmap_wrapper.py (99%) rename BMapBindings/PyBMap/{ => PyBMap}/virtools_types.py (100%) create mode 100644 BMapBindings/PyBMap/README.md diff --git a/BMapBindings/PyBMap/__init__.py b/BMapBindings/PyBMap/PyBMap/__init__.py similarity index 100% rename from BMapBindings/PyBMap/__init__.py rename to BMapBindings/PyBMap/PyBMap/__init__.py diff --git a/BMapBindings/PyBMap/bmap.py b/BMapBindings/PyBMap/PyBMap/bmap.py similarity index 100% rename from BMapBindings/PyBMap/bmap.py rename to BMapBindings/PyBMap/PyBMap/bmap.py diff --git a/BMapBindings/PyBMap/bmap_wrapper.py b/BMapBindings/PyBMap/PyBMap/bmap_wrapper.py similarity index 99% rename from BMapBindings/PyBMap/bmap_wrapper.py rename to BMapBindings/PyBMap/PyBMap/bmap_wrapper.py index 848e5a3..b51f758 100644 --- a/BMapBindings/PyBMap/bmap_wrapper.py +++ b/BMapBindings/PyBMap/PyBMap/bmap_wrapper.py @@ -1,5 +1,5 @@ import ctypes, typing, atexit -import bmap, virtools_types +from . import bmap, virtools_types #region Basic Class & Constant Defines diff --git a/BMapBindings/PyBMap/virtools_types.py b/BMapBindings/PyBMap/PyBMap/virtools_types.py similarity index 100% rename from BMapBindings/PyBMap/virtools_types.py rename to BMapBindings/PyBMap/PyBMap/virtools_types.py diff --git a/BMapBindings/PyBMap/README.md b/BMapBindings/PyBMap/README.md new file mode 100644 index 0000000..db6271e --- /dev/null +++ b/BMapBindings/PyBMap/README.md @@ -0,0 +1,6 @@ +# PyBMap + +The real scripts are placed in sub PyBMap folder. This folder is served for testbench scripts placing. +Place any testbench files (e.g. `testbench.py`) in there what you want and don't sumbit them. +The native BMap library should be placed in sub PyBMap folder, and I have used gitignore file to filter them. +The native BMap library must be named as `BMap.dll` in any platforms (e.g. Linux, macOS). Do not change name to `BMap.so` or `BMap.dylib`.