From 4cd41ff129e69753285cb0f3ef7fbd7a99429d32 Mon Sep 17 00:00:00 2001 From: henriquenakashima Date: Tue, 25 Apr 2023 00:49:01 -0400 Subject: [PATCH] Adapt cubedeck.py for Windows --- cubedeck.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cubedeck.py b/cubedeck.py index 3475221..ddcb11a 100644 --- a/cubedeck.py +++ b/cubedeck.py @@ -1,11 +1,10 @@ +# Setup: +# 1. Download cube list .txt from CubeCobra's export to .txt function +# 2. (Windows, non-WSL only) Install pyreadline3 +# # Usage: -# -# Download cube list .txt from CubeCobra's export to .txt function -# # $ python3 cubedeck.py MyCubeList.txt # -# -# # Enter card: Mo [tab] # Mogg War Marshal Moment's Peace Monastery Swiftspear Mortarpod Mountain # Moldervine Cloak Momentary Blink Monoskelion Mortify @@ -70,8 +69,8 @@ def open_file_with_default(file): def enable_autocomplete(): - if 'libedit' in readline.__doc__: - readline.parse_and_bind("bind ^I rl_complete") + if readline.__doc__ is not None and 'libedit' in readline.__doc__: + readline.parse_and_bind("bind ^I rl_complete") # macOS else: readline.parse_and_bind("tab: complete")