From 392a0c5a4d19da8f06b3ccab8b9d7fdcd558e64d Mon Sep 17 00:00:00 2001 From: Brian Jordan Date: Fri, 27 Jun 2008 18:17:45 +0000 Subject: Initial commit --- (limited to 'olpcgames/data') diff --git a/olpcgames/data/__init__.py b/olpcgames/data/__init__.py new file mode 100755 index 0000000..8510186 --- /dev/null +++ b/olpcgames/data/__init__.py @@ -0,0 +1,36 @@ +"""Design-time __init__.py for resourcepackage + +This is the scanning version of __init__.py for your +resource modules. You replace it with a blank or doc-only +init when ready to release. +""" +try: + __file__ +except NameError: + pass +else: + import os + if os.path.splitext(os.path.basename( __file__ ))[0] == "__init__": + try: + from resourcepackage import package, defaultgenerators + generators = defaultgenerators.generators.copy() + + ### CUSTOMISATION POINT + ## import specialised generators here, such as for wxPython + #from resourcepackage import wxgenerators + #generators.update( wxgenerators.generators ) + except ImportError: + pass + else: + package = package.Package( + packageName = __name__, + directory = os.path.dirname( os.path.abspath(__file__) ), + generators = generators, + ) + package.scan( + ### CUSTOMISATION POINT + ## force true -> always re-loads from external files, otherwise + ## only reloads if the file is newer than the generated .py file. + # force = 1, + ) + diff --git a/olpcgames/data/sleeping.svg b/olpcgames/data/sleeping.svg new file mode 100755 index 0000000..2c7ef50 --- /dev/null +++ b/olpcgames/data/sleeping.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + diff --git a/olpcgames/data/sleeping_svg.py b/olpcgames/data/sleeping_svg.py new file mode 100755 index 0000000..c52398a --- /dev/null +++ b/olpcgames/data/sleeping_svg.py @@ -0,0 +1,61 @@ +# -*- coding: ISO-8859-1 -*- +"""Resource sleeping_svg (from file sleeping.svg)""" +# written by resourcepackage: (1, 0, 1) +source = 'sleeping.svg' +package = 'olpcgames.data' +data = "\012\012 \012 \012 \012 \012 \012 \ +\012 \012 \012 \012 \012 \012 \012 \012 \012 \012\012" +### end -- cgit v0.9.1