Skip to content

Commit 47aebcb

Browse files
committed
Fix for classpath functionality is broken on Windows 10 #327
1 parent d692c0f commit 47aebcb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tika/tika.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,11 @@ def startServer(tikaServerJar, java_path = TikaJava, java_args = TikaJavaArgs, s
637637
host = "0.0.0.0"
638638

639639
if classpath:
640-
classpath += ":" + tikaServerJar
640+
if Windows:
641+
classpath += ";" + tikaServerJar
642+
classpath = "\"" + classpath + "\""
643+
else:
644+
classpath += ":" + tikaServerJar
641645
else:
642646
classpath = tikaServerJar
643647

0 commit comments

Comments
 (0)