1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/games/galaxymage/files/patch-src_Resources.py
Sam Lawrance ab73c1a69e Add galaxymage 0.2.1, open source tactical and strategic RPG.
PR:		ports/92580
Submitted by:	Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-05-01 08:58:54 +00:00

22 lines
853 B
Python

--- src/Resources.py Mon Jan 30 20:17:48 2006
+++ src/Resources.py Mon Jan 30 20:18:40 2006
@@ -37,15 +37,15 @@
sep = r'\\'
base = re.sub(r'/', sep, base)
name = re.sub(r'/', sep, name)
- result = os.path.join("data", campaign, base, name)
+ result = os.path.join("%%DATADIR%%", campaign, base, name)
if os.path.exists(result):
logger.debug('found ' + result)
return result
- result = os.path.join("data", "extra", base, name)
+ result = os.path.join("%%DATADIR%%", "extra", base, name)
if os.path.exists(result):
logger.debug('found ' + result)
return result
- result = os.path.join("data", "core", base, name)
+ result = os.path.join("%%DATADIR%%", "core", base, name)
if os.path.exists(result):
logger.debug('found ' + result)
return result