mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-06-23 22:14:10 +02:00
works in file. still needs refactoring
This commit is contained in:
@@ -30,7 +30,17 @@ def extract_enums(lines):
|
||||
|
||||
line_iter = iter(lines)
|
||||
enums = {}
|
||||
inside_defs = False
|
||||
|
||||
for line in line_iter:
|
||||
|
||||
# only pick up what is inside slsDetectorDefs
|
||||
if "class slsDetectorDefs" in line:
|
||||
inside_defs = True
|
||||
|
||||
if not inside_defs:
|
||||
continue
|
||||
|
||||
#Hack away class enum defs
|
||||
if "class" in line:
|
||||
line = line.replace("class", "")
|
||||
|
||||
Reference in New Issue
Block a user