-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for PyInstaller bundle? #19
Comments
@JokerQyou interesting idea, please send me poc. |
Any update on this @maxkrivich @JokerQyou |
Hmmm, I wonder how I missed the last notification from this thread. I'll take a look and try to reproduce it this weekend. I'll post my progress here. |
@JokerQyou @jajoosam thank you, I will be waiting for any updates from you. |
Okay. This is easier to reproduce than I thought. Basically it's like this:
# coding: utf-8
import time
import pync
if __name__ == '__main__':
pync.notify('Hello World', title='PyInstaller')
time.sleep(3)
pync.notify('About to quit')
time.sleep(1)
|
@JokerQyou Thanks, I will try as soon as possible |
This would be great if there's a fix or some workaround, any update on this? @maxkrivich @JokerQyou |
I kinda found a workaround for this problem by putting the pync folder into my resources folder, which are then bundled into the app.app/Contents/MacOS folder. Because pync is searching for the terminal-notifier.app from the folder its been called (os.path.dirname(file) == /path/to/app.app/Contents/MacOS/pync, this works for me now.
So in the resulting app bundle the terminal-notifier.app should be found in /path/to/app.app/Contents/MacOS/pync/vendor/terminal-notifier-2.0.0/terminal-notifier.app. |
This issue was created so long ago that it's very hard to recall the context of the specific project involved. I end up calling macOS notification API directly via |
Hi SeTeM! First of all thanks for providing this python binding of Terminal-Notifier.
I found it failed within a PyInstaller bundled
.app
folder. And as I could not ask every end user to install terminal-notifier, I decide to pack thevendor
folder into the.app
bundle. But that leaded to another problem: the path ofvendor
folder was coded as the same level ofTerminalNotifier.py
file, yetTerminalNotifier.py
would be bundled into a.pyz
archive file.If this could be solved I'd be very much appreciated.
The text was updated successfully, but these errors were encountered: