diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-03 11:03:19 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-04 06:09:41 +0000 |
commit | 939150289d13b40882f7247d05213a0418076810 (patch) | |
tree | 8a571321334c5c88a52292c69f5f226e68079a36 /sources/pyside2/tests/registry/init_platform.py | |
parent | 3edd8d54da44dfca48c364b97c24967a540cfcea (diff) |
Signature existence tests: Fix generation of the signature file
Amends cd1037060e0cbc263e601fb67fbd40d85c8801a1.
Task-number: PYSIDE-510
Change-Id: Ic93a6ef4ab846b07b369f691f52240aeedbfbec3
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/tests/registry/init_platform.py')
-rw-r--r-- | sources/pyside2/tests/registry/init_platform.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/pyside2/tests/registry/init_platform.py b/sources/pyside2/tests/registry/init_platform.py index ffe6e22fc..a8e692d98 100644 --- a/sources/pyside2/tests/registry/init_platform.py +++ b/sources/pyside2/tests/registry/init_platform.py @@ -229,7 +229,9 @@ def enum_all(): return ret def generate_all(): - with open(refPath(), "w") as outfile, open(sourcepath) as f: + refPath = getRefPath() + module = os.path.basename(os.path.splitext(refPath)[0]) + with open(refPath, "w") as outfile, open(sourcepath) as f: fmt = Formatter(outfile) enu = SimplifyingEnumerator(fmt) lines = f.readlines() @@ -254,7 +256,7 @@ def generate_all(): def __main__(): print("+++ generating {}. You should probably check this file in." - .format(refpath)) + .format(getRefPath())) generate_all() if __name__ == "__main__": |