diff --git a/Makefile b/Makefile index 600af702..128bfd68 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,13 @@ .PHONY: release dist install build-inplace define BROWSER_PYSCRIPT import os, webbrowser, sys +FAIL = "\033[91m" +ENDC = "\033[0m" + try: - from urllib import pathname2url -except: from urllib.request import pathname2url +except: + print(FAIL + "Python2 is deprecated, please upgrade your python >= 3.7" + ENDC) webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1]))) endef