tpaviot/pythonocc-core

platform.system() returns "Windows"

Closed this issue · 1 comments

Hi @tpaviot

Thank you for previous updates for windows users!

I found a small mistake here : init.py@Ln.38

  • As is
if platform.system() == "windows":
  • Should be
if platform.system().lower() == "windows":
  • Reason
    On Windows, platform.system() returns "Windows" in which there is a capital letter.
    Should convert it to lower cases before matching.

Best regards,
Bill

Fixed by commit 8516419