Added support for recent CPython and PyPy versions; Droped Python v2.7 Support (#680)

This commit is contained in:
Andreas Motl
2022-10-08 02:28:36 +02:00
committed by GitHub
parent f7244cce3d
commit 00afe4e5b6
164 changed files with 746 additions and 2787 deletions

View File

@@ -41,20 +41,20 @@ from os.path import dirname
# First assume we might be in the ./bin directory
sys.path.insert(
0, join(dirname(dirname(abspath(__file__))))) # noqa
0, join(dirname(dirname(abspath(__file__)))))
# The user might have copied the apprise script back one directory
# so support this too..
sys.path.insert(
0, join(dirname(abspath(__file__)))) # noqa
0, join(dirname(abspath(__file__))))
# We can also use the current directory we're standing in as a last
# resort
sys.path.insert(0, join(getcwd())) # noqa
sys.path.insert(0, join(getcwd()))
# Apprise tool now importable
from apprise.cli import main
import logging
from apprise.cli import main # noqa E402
import logging # noqa E402
if __name__ == "__main__":