Skip to content

Commit a3b9717

Browse files
committed
Add environment variable
1 parent ca9ce1e commit a3b9717

File tree

1 file changed

+4
-1
lines changed
  • library/src/main/java/com/yausername/youtubedl_android

1 file changed

+4
-1
lines changed

library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.yausername.youtubedl_android
22

33
import android.content.Context
44
import android.os.Build
5+
import android.util.Log
56
import com.fasterxml.jackson.databind.ObjectMapper
67
import com.yausername.youtubedl_android.YoutubeDLException
78
import com.yausername.youtubedl_android.mapper.VideoInfo
@@ -168,7 +169,9 @@ object YoutubeDL {
168169
this["SSL_CERT_FILE"] = ENV_SSL_CERT_FILE
169170
this["PATH"] = System.getenv("PATH") + ":" + binDir!!.absolutePath
170171
this["PYTHONHOME"] = ENV_PYTHONHOME
171-
}
172+
this["HOME"] = ENV_PYTHONHOME
173+
}.entries.forEach { Log.d("PythonInit", "[${it.key}] = ${it.value}") }
174+
172175
process = try {
173176
processBuilder.start()
174177
} catch (e: IOException) {

0 commit comments

Comments
 (0)