summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/res
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/res')
-rw-r--r--Mac/Modules/res/resscan.py5
-rw-r--r--Mac/Modules/res/ressupport.py3
2 files changed, 3 insertions, 5 deletions
diff --git a/Mac/Modules/res/resscan.py b/Mac/Modules/res/resscan.py
index eff0005..efb538c 100644
--- a/Mac/Modules/res/resscan.py
+++ b/Mac/Modules/res/resscan.py
@@ -8,8 +8,9 @@ import string
import regex
import regsub
import MacOS
-import addpack
-addpack.addpack(':Tools:bgen:bgen')
+
+BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
+sys.path.append(BGENDIR)
from bgenlocations import TOOLBOXDIR
from scantools import Scanner
diff --git a/Mac/Modules/res/ressupport.py b/Mac/Modules/res/ressupport.py
index 4b4bd2f..5d45f2e 100644
--- a/Mac/Modules/res/ressupport.py
+++ b/Mac/Modules/res/ressupport.py
@@ -3,9 +3,6 @@
# It execs the file resgen.py which contain the function definitions
# (resgen.py was generated by resscan.py, scanning the <Resources.h> header file).
-import addpack
-addpack.addpack(':Tools:bgen:bgen')
-
from macsupport import *