Skip to content

Commit 5f107aa

Browse files
Merge pull request #162 from cymox1/master
Add TIKA_PATH environment variable
2 parents fcc0c7e + c5f4ed0 commit 5f107aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ These are read once, when tika/tika.py is initially loaded and used throughout a
3636
5. `TIKA_TRANSLATOR` - set to the fully qualified class name (defaults to Lingo24) for the Tika translator implementation.
3737
6. `TIKA_SERVER_CLASSPATH` - set to a string (delimited by ':' for each additional path) to prepend to the Tika server jar path.
3838
7. `TIKA_LOG_PATH` - set to a directory with write permissions and the `tika.log` and `tika-server.log` files will be placed in this directory.
39+
8. `TIKA_PATH` - set to a directory with write permissions and the `tika_server.jar` file will be placed in this directory.
3940

4041
Testing it out
4142
==============

tika/tika.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def make_content_disposition_header(fn):
153153

154154
Windows = True if platform.system() == "Windows" else False
155155
TikaVersion = os.getenv('TIKA_VERSION', '1.15')
156-
TikaJarPath = tempfile.gettempdir()
156+
TikaJarPath = os.getenv('TIKA_PATH', tempfile.gettempdir())
157157
TikaFilesPath = tempfile.gettempdir()
158158
TikaServerLogFilePath = log_path
159159
TikaServerJar = os.getenv(

0 commit comments

Comments
 (0)