describe your issue
I had an end user who I believe had AHKv1 in their path, but did not have v2 in their path. This lead to an error
"AutoHotkey v2 was request but AutoHotkey v1 was detected for executable C:\Program Files\AutoHotkey\Autohotkey.exe"
Explicitly specifying the executable path with r'C:\Program Files\AutoHotkey\v2\AutoHotkey64.exe' worked.
I think this is the relevant line of code is:
|
or which('AutoHotkey.exe') |
ahk.version
1.7.8
AutoHotkey version
v2
Code to reproduce the issue
from ahk import AHK
ahk = AHK(
version='v2'
)
Traceback/Error message
No response
describe your issue
I had an end user who I believe had AHKv1 in their path, but did not have v2 in their path. This lead to an error
"AutoHotkey v2 was request but AutoHotkey v1 was detected for executable
C:\Program Files\AutoHotkey\Autohotkey.exe"Explicitly specifying the executable path with
r'C:\Program Files\AutoHotkey\v2\AutoHotkey64.exe'worked.I think this is the relevant line of code is:
ahk/ahk/_utils.py
Line 97 in 1bfb992
ahk.version
1.7.8
AutoHotkey version
v2
Code to reproduce the issue
Traceback/Error message
No response