mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-05 18:42:29 +01:00
Fix qml format still containing test code
This commit is contained in:
parent
e327f73812
commit
50b991dfb8
@ -14,6 +14,7 @@ import shutil
|
||||
stdout.reconfigure(encoding='utf-8')
|
||||
|
||||
|
||||
# Instead of comparing the direct outputs (which was leading to ambiguous results), this function uses a workaround that checks the file's MD5 hash before and after formatting.
|
||||
def format_qml_file(file):
|
||||
executable = "qmlformat"
|
||||
if os.name == 'nt':
|
||||
@ -23,7 +24,7 @@ def format_qml_file(file):
|
||||
|
||||
# Add -i for formatting in place
|
||||
process = subprocess.run(
|
||||
[executable, "-i -l unix", file], capture_output=True, shell=True)
|
||||
[executable, "-i", file], capture_output=True, shell=True)
|
||||
print("Format: %s \t return: %s" % (file, process.returncode))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user