KiCad / kicad-library-utils

Some scripts for helping with library development
GNU General Public License v3.0
128 stars 95 forks source link

Fix call to checklib.py from comparelibs.py (--nocolor arg and python3) #331

Closed justyn closed 4 years ago

justyn commented 4 years ago

Fixing 2 bugs in comparelibs.py when it called checklib.py:

chschlue commented 4 years ago

Thanks for the fix.

The first part is pretty clear, but how does the shebang enforce python3 availability if the script is invoked as an argument to the interpreter instead of directly?

justyn commented 4 years ago

The first part is pretty clear, but how does the shebang enforce python3 availability if the script is invoked as an argument to the interpreter instead of directly?

You're right, sloppy language on my part - I really meant that python3 was already assumed due to the shebang.

I assume from your comment you're trying to prevent breakage for people using python 2?

justyn commented 4 years ago

I can update to use sys.executable in place of python, that should be the most robust I think?

chschlue commented 4 years ago

Py2 of course deserves to rest in peace, but then, why break it for people stuck with it for some reason? Your proposal looks good to me.

justyn commented 4 years ago

Sure, I've pushed the update.

Of course, one day hopefully checklib will be used as a module instead :-)

justyn commented 4 years ago

Thanks for the quick merge @chschlue