annotate orpg/external/std.py @ 20:39ebe168ceb3 ornery-orc

Traipse 'OpenRPG' {090827-02} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: Update Manager is now in version 0.8. While not every button works, users can now browse the different revisions and their different changesets. The code has been refined some with feature from Core added to it. A Crash report is now created if the users software crashes. Update Manager has been moved to the Traipse Suite menu item, and a Debug Console as been added as well. Please Check the Controls Panel to see the other files changed.
author sirebral
date Thu, 27 Aug 2009 01:11:22 -0500
parents 97265586402b
children
rev   line source
18
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
1
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
2 import sys
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
3
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
4 class Std(object):
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
5 """
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
6 makes all standard python modules available as a lazily
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
7 computed attribute.
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
8 """
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
9
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
10 def __init__(self):
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
11 self.__dict__ = sys.modules
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
12
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
13 def __getattr__(self, name):
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
14 try:
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
15 m = __import__(name)
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
16 except ImportError:
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
17 raise AttributeError("py.std: could not import %s" % name)
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
18 return m
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
19
97265586402b Traipse 'OpenRPG' {090827-00}
sirebral
parents:
diff changeset
20 std = Std()