From 2cd9e99e811f27a1ab9ab4189c5fed380b318ab8 Mon Sep 17 00:00:00 2001 From: montellese Date: Sat, 8 Jun 2013 10:16:44 +0200 Subject: [PATCH] python: register XBPython for .py files --- xbmc/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp index e185fa4443641..068da9de917a3 100644 --- a/xbmc/Application.cpp +++ b/xbmc/Application.cpp @@ -777,6 +777,10 @@ bool CApplication::Create() // initialize the addon database (must be before the addon manager is init'd) CDatabaseManager::Get().Initialize(true); +#ifdef HAS_PYTHON + CScriptInvocationManager::Get().RegisterLanguageInvocationHandler(&g_pythonParser, ".py"); +#endif // HAS_PYTHON + // start-up Addons Framework // currently bails out if either cpluff Dll is unavailable or system dir can not be scanned if (!CAddonMgr::Get().Init())