apprise devel tool search path updated (#291)

pull/295/head
Chris Caron 4 years ago committed by GitHub
parent b1373bf428
commit 490d51d492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save