You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why are we calling python to run another python script, moreover one that is in this repo? How do we even know that the python that's called is the same python that's used to execute this script?
So... While trying to debug fontforge/fontforge#3145 I ran into a few gems...
fontcustom/lib/fontcustom/scripts/generate.py
Line 118 in e5bbc45
/
in place ofos.path.join
?Popen
ing without waiting for it to finish??? Why not usesubprocess.check_output
? Why is it even piping stdout???At least on Windows, a failure to run due to it being missing raises a(one and the same)FileNotFoundError
instead of anOSError
fontcustom/lib/fontcustom/scripts/generate.py
Line 125 in e5bbc45
fontcustom/lib/fontcustom/scripts/generate.py
Line 129 in e5bbc45
python
to run another python script, moreover one that is in this repo? How do we even know that the python that's called is the same python that's used to execute this script?shell=True
?????fontcustom/lib/fontcustom/scripts/eotlitetool.py
Line 450 in e5bbc45
fontcustom/lib/fontcustom/scripts/eotlitetool.py
Line 458 in e5bbc45
fontcustom/lib/fontcustom/scripts/generate.py
Line 132 in e5bbc45
os.rename
IS TOO HARDeotlitetool.py
IS TOO HARD(apologies for the caps... by this point my mind was blown)
fontcustom/lib/fontcustom/scripts/generate.py
Line 138 in e5bbc45
woff2_compress 'blah.ttf'
just doesn't work on Windows/cmd.exeI'm done...
The text was updated successfully, but these errors were encountered: