-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update initialization and installation script
Unhook version dependencies with changelog-generator
- Loading branch information
1 parent
e24e446
commit a15cb72
Showing
6 changed files
with
39 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
import os | ||
|
||
from pynotification import pynotifier | ||
version = "0.7" | ||
|
||
version = "0.5.4" | ||
install_script = os.path.join(os.path.dirname(__file__), 'lib', 'install.sh') | ||
|
||
try: | ||
import pvporcupine # noqa | ||
import pyaudio # noqa | ||
import pvporcupine # noqa: F401 | ||
import pyaudio # noqa: F401 | ||
import pynotification # noqa: F401 | ||
except ImportError as error: | ||
pynotifier(title="First time user?", dialog=True, | ||
message=f"Please run\n\n{os.path.join(os.path.dirname(__file__), 'lib', 'install.sh')}") | ||
raise UserWarning(f"{error.__str__()}\n\nPlease run\n\n" | ||
f"{os.path.join(os.path.dirname(__file__), 'lib', 'install.sh')}") | ||
try: | ||
pynotification.pynotifier(title="First time user?", dialog=True, message=f"Please run\n\n{install_script}") | ||
except NameError: | ||
pass | ||
raise UserWarning(f"{error.__str__()}\n\nPlease run\n\n{install_script}\n\n" | ||
"Note: Shell script will quit for any non-zero exit status, " | ||
"so it might have to be triggered twice.") | ||
else: | ||
from .main import start | ||
start.count = 0 | ||
from .main import start # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters