diff options
Diffstat (limited to 'candle-pyo3/test.py')
-rw-r--r-- | candle-pyo3/test.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/candle-pyo3/test.py b/candle-pyo3/test.py index f76dee9b..7f24b49d 100644 --- a/candle-pyo3/test.py +++ b/candle-pyo3/test.py @@ -1,18 +1,3 @@ -import os -import sys - -# The "import candle" statement below works if there is a "candle.so" file in sys.path. -# Here we check for shared libraries that can be used in the build directory. -BUILD_DIR = "./target/release-with-debug" -so_file = BUILD_DIR + "/candle.so" -if os.path.islink(so_file): os.remove(so_file) -for lib_file in ["libcandle.dylib", "libcandle.so"]: - lib_file_ = BUILD_DIR + "/" + lib_file - if os.path.isfile(lib_file_): - os.symlink(lib_file, so_file) - sys.path.insert(0, BUILD_DIR) - break - import candle t = candle.Tensor(42.0) |