Skip to content

Commit

Permalink
Add environment variable
Browse files Browse the repository at this point in the history
(cherry picked from commit a3b9717)
  • Loading branch information
JunkFood02 committed Apr 12, 2023
1 parent 52f9ad8 commit ce44ea5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.yausername.youtubedl_android

import android.content.Context
import android.os.Build
import android.util.Log
import com.fasterxml.jackson.databind.ObjectMapper
import com.yausername.youtubedl_android.YoutubeDLException
import com.yausername.youtubedl_android.mapper.VideoInfo
Expand Down Expand Up @@ -168,7 +169,9 @@ object YoutubeDL {
this["SSL_CERT_FILE"] = ENV_SSL_CERT_FILE
this["PATH"] = System.getenv("PATH") + ":" + binDir!!.absolutePath
this["PYTHONHOME"] = ENV_PYTHONHOME
}
this["HOME"] = ENV_PYTHONHOME
}.entries.forEach { Log.d("PythonInit", "[${it.key}] = ${it.value}") }

process = try {
processBuilder.start()
} catch (e: IOException) {
Expand Down

0 comments on commit ce44ea5

Please sign in to comment.