From 493ce5439af6a008ff170f4bca0ee7031e32231b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 13 Dec 2018 06:13:04 +0100 Subject: Windows port (unsuccessful as the external part does not running on Windows due to multiple reasons) --- external/run.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 external/run.bat (limited to 'external/run.bat') diff --git a/external/run.bat b/external/run.bat new file mode 100644 index 0000000..47f5dd1 --- /dev/null +++ b/external/run.bat @@ -0,0 +1,20 @@ +REM No grep in batch, but Powershell supports it. We can convert script to powershell +REM path=$(cat ../.env | grep -oP 'BIOMEDISA_HOST_SRC_PATH=\K.*') + +SET BIOMEDISA_PATH=C:/Users/csa/biomedisa/ +SET PYTHON_PATH="C:\Users\csa\AppData\Roaming\Python\Scripts" + +SET PATH=%PATH%;%PYTHON_PATH%; +SET PYTHONPATH=%BIOMEDISA_PATH%;%PYTHONPATH% +SET DJANGO_SETTINGS_MODULE=biomedisa.settings +SET BIOMEDISA_SRC_PATH="%BIOMEDISA_PATH%" +SET MYSQL_HOST=127.0.0.1 +SET REDIS_HOST="localhost" + +REM RQ is not working on Windows due to absent (clone). RQ-win project doesn't work with current version of RQ (but probably easy to fix) +REM cd "%BIOMEDISA_PATH%" || exit -1 +REM %PYTHON_PATH%\rqworker -w rq_win.WindowsWorker -u http://localhost first_queue + +REM This fails since different paths are written to MySQL database from the containers.... +REM cd biomedisa_features/random_walk +REM python rw_main.py C:\Users\csa\biomedisa\media\images\tumor.tif C:\Users\csa\biomedisa\media\images\labels.tumor.tif -- cgit v1.2.3