andrew-wilkes / godot-chess

This project implements a PC chess board GUI compatible with UCI protocol to interface with chess engines.
MIT License
62 stars 22 forks source link

Can't find path normally in Windows #3

Closed Garbage123King closed 1 year ago

Garbage123King commented 1 year ago

When press "PLAY", it shows:

Missing iopiper at: /bin/iopiper

Then I found "cmd" didn't work well.

if OS.get_name() == "Windows":
        print("it is windows")
    cmd = "cd"
    ext = ".exe"
var output = []
var _exit_code = OS.execute(cmd, [], true, output)
print(output)

output is:

it is windows
[]
andrew-wilkes commented 1 year ago

Thanks for your input. There seems to be a new way to specify a Windows command which I have implemented in the latest commit. This appears to have fixed the issue. I tested with Windows 10 and Godot 3.5.2 -stable