mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
ab73c1a69e
PR: ports/92580 Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
22 lines
853 B
Python
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
|