Skip to content

Commit fab448d

Browse files
committed
Fix for key exception on 32 bit Windows system
1 parent 44f079b commit fab448d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

advanced_new_file/anf_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
PLATFORM = sublime.platform()
6161
TOP_LEVEL_SPLIT_CHAR = ":"
6262
IS_ST3 = int(sublime.version()) > 3000
63+
IS_X64 = sublime.arch() == "x64"
6364

6465

6566
def generate_creation_path(settings, base, path, append_extension=False):

advanced_new_file/commands/git/git_command_base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ def find_git():
3030
# /usr/local/bin:/usr/local/git/bin
3131
if os.name == 'nt':
3232
extra_paths = (
33-
os.path.join(os.environ["ProgramFiles"], "Git", "bin"),
34-
os.path.join(os.environ["ProgramFiles(x86)"], "Git", "bin"),
33+
os.path.join(os.environ["ProgramFiles"], "Git", "bin"),
3534
)
35+
if IS_X64:
36+
extra_paths = extra_paths + (
37+
os.path.join(os.environ["ProgramFiles(x86)"], "Git", "bin"),
38+
)
3639
else:
3740
extra_paths = (
3841
'/usr/local/bin',

0 commit comments

Comments
 (0)