fix ImportError when non-ASCII characters in import path
This commit is contained in:
parent
4e415fe4ab
commit
31a353be7a
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ sys.path.insert(0, package_folder)
|
||||||
# import local wakatime package
|
# import local wakatime package
|
||||||
try:
|
try:
|
||||||
import wakatime
|
import wakatime
|
||||||
except TypeError:
|
except (TypeError, ImportError):
|
||||||
# on Windows, non-ASCII characters in import path can be fixed using
|
# on Windows, non-ASCII characters in import path can be fixed using
|
||||||
# the script path from sys.argv[0].
|
# the script path from sys.argv[0].
|
||||||
# More info at https://github.com/wakatime/wakatime/issues/32
|
# More info at https://github.com/wakatime/wakatime/issues/32
|
||||||
|
|
Loading…
Reference in a new issue