summaryrefslogtreecommitdiffstats
path: root/external/run.bat
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-12-13 06:13:04 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-12-13 06:13:04 +0100
commit493ce5439af6a008ff170f4bca0ee7031e32231b (patch)
tree3b0b42878bbdfa64b27c3d34435cfdb41c53d546 /external/run.bat
parent9c3d5c48694db1018d50aa85acad434f47e5ed0b (diff)
downloadbiomedisa-master.tar.gz
biomedisa-master.tar.bz2
biomedisa-master.tar.xz
biomedisa-master.zip
Windows port (unsuccessful as the external part does not running on Windows due to multiple reasons)HEADmaster
Diffstat (limited to 'external/run.bat')
-rw-r--r--external/run.bat20
1 files changed, 20 insertions, 0 deletions
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