apprise devel tool search path updated (#291)

This commit is contained in:
Chris Caron 2020-09-04 16:39:12 -04:00 committed by GitHub
parent b1373bf428
commit 490d51d492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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