Browse Source

apprise devel tool search path updated (#291)

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

8
bin/apprise

@ -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

Loading…
Cancel
Save