| 1 | # Scan Resources.h header file, generate resgen.py and Resources.py files.
|
|---|
| 2 | # Then run ressupport to generate Resmodule.c.
|
|---|
| 3 | # (Should learn how to tell the compiler to compile it as well.)
|
|---|
| 4 |
|
|---|
| 5 | import sys
|
|---|
| 6 | import os
|
|---|
| 7 | import string
|
|---|
| 8 | import MacOS
|
|---|
| 9 |
|
|---|
| 10 | from bgenlocations import TOOLBOXDIR, BGENDIR
|
|---|
| 11 | sys.path.append(BGENDIR)
|
|---|
| 12 |
|
|---|
| 13 | from scantools import Scanner
|
|---|
| 14 |
|
|---|
| 15 | def main():
|
|---|
| 16 | input = "Resources.h"
|
|---|
| 17 | output = "resgen.py"
|
|---|
| 18 | defsoutput = TOOLBOXDIR + "Resources.py"
|
|---|
| 19 | scanner = ResourcesScanner(input, output, defsoutput)
|
|---|
| 20 | scanner.scan()
|
|---|
| 21 | scanner.close()
|
|---|
| 22 | print "=== Testing definitions output code ==="
|
|---|
|
|---|