mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Tidy up the code a bit more after that last fix.
This commit is contained in:
parent
ed6603c3cd
commit
8a8e255239
1 changed files with 2 additions and 4 deletions
6
main.py
6
main.py
|
@ -465,15 +465,13 @@ def main():
|
||||||
# Invoke the external preprocessor
|
# Invoke the external preprocessor
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
stdout = ''
|
|
||||||
p = subprocess.Popen(preproc_cmdline, stdin=subprocess.PIPE,
|
p = subprocess.Popen(preproc_cmdline, stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
stdout = p.communicate(input=script)[0]
|
script = p.communicate(input=script)[0]
|
||||||
status = p.wait()
|
status = p.wait()
|
||||||
if status:
|
if status:
|
||||||
return status
|
return status
|
||||||
script = stdout
|
del p, status
|
||||||
del p, status, stdout
|
|
||||||
|
|
||||||
for x in re.findall(r'(?:(?<=\n)|^)\s*#\s*define\s+('
|
for x in re.findall(r'(?:(?<=\n)|^)\s*#\s*define\s+('
|
||||||
r'USE_SWITCHES'
|
r'USE_SWITCHES'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue