summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/scrap/scrapscan.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/scrap/scrapscan.py')
-rw-r--r--Mac/Modules/scrap/scrapscan.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/Mac/Modules/scrap/scrapscan.py b/Mac/Modules/scrap/scrapscan.py
index 0d4661f..6227446 100644
--- a/Mac/Modules/scrap/scrapscan.py
+++ b/Mac/Modules/scrap/scrapscan.py
@@ -5,7 +5,10 @@
import sys
import os
-BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
+if os.sep == ':':
+ BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
+else:
+ BGENDIR="../../../Tools/bgen/bgen"
sys.path.append(BGENDIR)
from scantools import Scanner
from bgenlocations import TOOLBOXDIR
@@ -29,10 +32,16 @@ class MyScanner(Scanner):
def destination(self, type, name, arglist):
classname = "Function"
listname = "functions"
+ if arglist:
+ t, n, m = arglist[0]
+ if t == 'ScrapRef' and m == "InMode":
+ classname = "Method"
+ listname = "methods"
return classname, listname
def makeblacklistnames(self):
return [
+ "GetScrapFlavorInfoList",
]
def makegreylist(self):
@@ -50,7 +59,7 @@ class MyScanner(Scanner):
def makeblacklisttypes(self):
return [
- "ScrapRef", # For now -- This is the Carbon scrap main object
+ 'ScrapPromiseKeeperUPP',
]
def makerepairinstructions(self):