Skip to content

Commit eb69f30

Browse files
Only run on windows
1 parent e9db257 commit eb69f30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pros/cli/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
import pros.cli.interactive
2929
import pros.cli.user_script
3030

31-
kernel32 = ctypes.windll.kernel32
32-
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
31+
if sys.platform == 'win32':
32+
kernel32 = ctypes.windll.kernel32
33+
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
3334

3435
root_sources = [
3536
'build',

0 commit comments

Comments
 (0)