mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
kodi: drop unneeded patch
This commit is contained in:
parent
c3afcf4e6c
commit
cf63cc1051
@ -1,30 +0,0 @@
|
|||||||
From 26d1905c371dd7e0e23bb589ccf29f2bfec5b8af Mon Sep 17 00:00:00 2001
|
|
||||||
From: Stefan Saraev <stefan@saraev.ca>
|
|
||||||
Date: Sat, 18 Apr 2015 15:12:49 +0300
|
|
||||||
Subject: [PATCH 01/13] enable PYTHONOPTIMIZE with external Python
|
|
||||||
|
|
||||||
---
|
|
||||||
xbmc/interfaces/python/XBPython.cpp | 7 +++----
|
|
||||||
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/xbmc/interfaces/python/XBPython.cpp b/xbmc/interfaces/python/XBPython.cpp
|
|
||||||
index af8d608..6213dbe 100644
|
|
||||||
--- a/xbmc/interfaces/python/XBPython.cpp
|
|
||||||
+++ b/xbmc/interfaces/python/XBPython.cpp
|
|
||||||
@@ -568,10 +568,9 @@ bool XBPython::OnScriptInitialized(ILanguageInvoker *invoker)
|
|
||||||
// at http://docs.python.org/using/cmdline.html#environment-variables
|
|
||||||
|
|
||||||
#if !defined(TARGET_WINDOWS) && !defined(TARGET_ANDROID)
|
|
||||||
- /* PYTHONOPTIMIZE is set off intentionally when using external Python.
|
|
||||||
- Reason for this is because we cannot be sure what version of Python
|
|
||||||
- was used to compile the various Python object files (i.e. .pyo,
|
|
||||||
- .pyc, etc.). */
|
|
||||||
+ // Required for python to find optimized code (pyo) files
|
|
||||||
+ setenv("PYTHONOPTIMIZE", "1", 1);
|
|
||||||
+
|
|
||||||
// check if we are running as real xbmc.app or just binary
|
|
||||||
if (!CUtil::GetFrameworksPath(true).empty())
|
|
||||||
{
|
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user