Commit 414f384 1 parent fa89d7b commit 414f384 Copy full SHA for 414f384
File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ include README.md
2
2
include LICENSE
3
3
include requirements.txt
4
4
include bach_generator/py.typed
5
+ include bach_generator/gui/media/icon.png
5
6
recursive-exclude tests *
Original file line number Diff line number Diff line change 8
8
# pylint: disable=line-too-long
9
9
10
10
import ctypes
11
+ import os
11
12
import sys
12
13
import tkinter as tk
13
14
from uuid import uuid4
@@ -42,6 +43,9 @@ def add_frames(self):
42
43
43
44
def set_icon (self , icon_path ):
44
45
"""Sets window icon, and taskbar icon (only on Windows)"""
46
+ if not os .path .isfile (icon_path ):
47
+ return
48
+
45
49
photo = tk .PhotoImage (file = icon_path )
46
50
self .iconphoto (False , photo )
47
51
self ._set_taskbar_icon ()
Original file line number Diff line number Diff line change 8
8
9
9
setuptools .setup (
10
10
name = "bach_generator" ,
11
- version = "1.0.0 " ,
11
+ version = "1.0.1 " ,
12
12
description = "Machine learning based Bach music generator" ,
13
13
long_description = project_dir .joinpath ("README.md" ).read_text (encoding = "utf-8" ),
14
14
long_description_content_type = "text/markdown" ,
15
15
keywords = ["python" ],
16
16
author = "Richard Baltrusch" ,
17
17
url = "https://github.com/rbaltrusch/bach_generator" ,
18
18
packages = setuptools .find_packages ("." ),
19
- package_dir = {"" : "." },
20
19
python_requires = ">=3.8" ,
21
20
include_package_data = True ,
22
21
package_data = {"bach_generator" : ["py.typed" ]}, # for mypy
You can’t perform that action at this time.
0 commit comments