Commits

Anonymous committed 66a1a0e

cleanup work

Comments (0)

Files changed (6)

 
 """
 
-from anyrpg import __copyright__, __url__, __author__
+try: 
+    from anyrpg import __copyright__, __url__, __author__
+except: 
+    from rpg_lib.anyrpg import __copyright__, __url__, __author__
 
-__copyright__ = """ 
-  rpg-1d6 - A general roleplaying backend. 
-  -> http://rpg-1d6.sf.net
------------------------------------------------------------------ 
-© Copyright by Arne Babenhauserheide, 2008  (arne_bab@web.de) 
-
-  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; either version 3 of the License, or
-  (at your option) any later version.
-
-  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.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
-  MA 02110-1301 USA
-
-""" 
-__version__   = '0.3' 
-__author__    = 'Arne Babenhauserheide' 
+__version__   = '0.4' 
 # __date__      = '7th March 2007' 
-__url__       = 'http://rpg-1d6.sf.net' 
 
 
 print "...Loading rpg library..."
 
-# AnyRPG classes
-from anyrpg import Char
-from anyrpg import Story as any_story
-# AnyRPG function for localizing. 
-from anyrpg import _
+
+try: 
+    # AnyRPG classes
+    from anyrpg import Char
+    from anyrpg import Story as any_story
+    # AnyRPG function for localizing. 
+    from anyrpg import _
+except: 
+    # AnyRPG classes
+    from rpg_lib.anyrpg import Char
+    from rpg_lib.anyrpg import Story as any_story
+    # AnyRPG function for localizing. 
+    from rpg_lib.anyrpg import _
 
 
 # Changing things. I want to display "..." in front of every blank story line. 

rpg_lib/textrpg_1d6/amov/Armee.py

 ### Imports ###
 
 # Für das Dateiformat brauchen wir yaml
-from yaml import load as yaml_load
+from rpg_lib.yaml import load as yaml_load
 
 # Um die Dateien zu laden, nutzen wir die Objekt-Klasse. 
 import Skripte.Kernskripte.Objekt as Objekt

rpg_lib/textrpg_1d6/amov/Namensgrammatik.py

 ### Imports ###
 
 # Für das Dateiformat brauchen wir yaml, hier müssen wir yaml nur laden können. 
-from yaml import load as yaml_load
+from rpg_lib.yaml import load as yaml_load
 
 # Um die Dateien zu laden, nutzen wir die Objekt-Klasse. 
 import Skripte.Kernskripte.Objekt as Objekt

rpg_lib/textrpg_1d6/amov/Object.py

 ### Imports ###
 
 # Für das Dateiformat brauchen wir yaml, in dieser Datei müssen wir sie nur laden können. 
-from yaml import load as yaml_load
+from rpg_lib.yaml import load as yaml_load
 
 # Um die Dateien zu laden, nutzen wir die Objekt-Klasse. 
 import Skripte.Kernskripte.Objekt as Objekt

rpg_lib/textrpg_1d6/amov/Schlacht.py

 ### Imports ###
 
 # Für das Dateiformat brauchen wir yaml
-from yaml import load as yaml_load
+from rpg_lib.yaml import load as yaml_load
 
 # Um die Dateien zu laden, nutzen wir die Objekt-Klasse. 
 import Skripte.Kernskripte.Objekt as Objekt

rpg_lib/textrpg_1d6/namegen/pycfnamegen/cfnamegen.py

 import random
 import re
 import sys
-import yaml
+from rpg_lib import yaml
 
 
 class GrammarError(RuntimeError):