Skip to content

Commit

Permalink
Hzqkii pr: fix temp path for linux
Browse files Browse the repository at this point in the history
If user is running linux, set "temp_folder" to "/tmp".
  • Loading branch information
couleurm committed Feb 16, 2024
2 parents f045266 + bc58478 commit 70697b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion target/jamba.vpy
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ from vapoursynth import core
import os
from os import path # filepath handling
import sys
import tempfile

path_dirname = path.dirname(__file__).replace('\\\\?\\', '') # .replace because windows

Expand Down Expand Up @@ -55,7 +56,9 @@ verb(f"CONTEXT: __file__: {__file__}")
_, input_ext = path.splitext(input_video)

base_file_name = path.basename(input_video)
temp_folder = os.environ['TEMP']


temp_folder = tempfile.gettempdir()
cache_file = path.join(temp_folder, f"{base_file_name}-ffms2_index")

if input_ext == '.avi':
Expand Down

0 comments on commit 70697b0

Please sign in to comment.