[6ea066]: script.games.xbmame / xbmame.py Maximize Restore History

Download this file

xbmame.py    32 lines (28 with data), 1.2 kB

 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
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is plugin.games.xbmame.
#
# The Initial Developer of the Original Code is Olivier LODY aka Akira76.
# Portions created by the XBMC team are Copyright (C) 2003-2010 XBMC.
# All Rights Reserved.
import os
import sys
from xbmcaddon import Addon
# Shared resources
ADDON_ID = "script.games.xbmame"
sys.path.append(os.path.join(Addon(ADDON_ID).getAddonInfo("path"), "resources", "lib" ))
sys.path.append(os.path.join(Addon(ADDON_ID).getAddonInfo("path"), "resources", "lib", "obj" ))
sys.path.append(os.path.join(Addon(ADDON_ID).getAddonInfo("path"), "resources", "lib", "gui" ))
if __name__ == "__main__":
from XBMame import XBMame
if len(sys.argv)==1:action=""
else: action = sys.argv[1]
XBMame(ADDON_ID, action)