Skip to content

Commit

Permalink
python: register XBPython for .py files
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Jul 1, 2013
1 parent 6e4f924 commit 2cd9e99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/Application.cpp
Expand Up @@ -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())
Expand Down

0 comments on commit 2cd9e99

Please sign in to comment.