-
Notifications
You must be signed in to change notification settings - Fork 5
/
addon.py
34 lines (29 loc) · 1.44 KB
/
addon.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-
# Copyright (c) 2016-2020 Wintermute0110 <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
# Advanced MAME Launcher main script file.
# --- Modules/packages in this plugin ---
import resources.main
# --- Python standard library ---
import sys
# -------------------------------------------------------------------------------------------------
# main()
# -------------------------------------------------------------------------------------------------
# In Kodi Leia the submodules are cached and only the entry point is interpreted on every addon
# call. sys.argv must be propagated into submodules. For addon development, caching of submodules
# must be disabled in addon.xml.
#
# Put the main bulk of the code in files inside /resources/, which is a package directory.
# This way, the Python interpreter will precompile them into bytecode (files PYC/PYO) so
# loading time is faster compared to PY files.
# See http://www.network-theory.co.uk/docs/pytut/CompiledPythonfiles.html
#
resources.main.run_plugin(sys.argv)