Skip to content

Commit

Permalink
finally a exe
Browse files Browse the repository at this point in the history
- changed some things and converted into exe
  • Loading branch information
pagega committed Nov 23, 2023
1 parent 4e5cbaa commit 83e51c4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
Binary file added Viewer.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions Viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def naechster_werktag(datum):
naechste_tage = []

if heutiges_datum.weekday() != 5 and heutiges_datum.weekday() != 6:
naechste_tage.append(f'{heutiges_datum.strftime('%A')}, {heutiges_datum.day}.{heutiges_datum.month}.{heutiges_datum.year}')
naechste_tage.append(f"{heutiges_datum.strftime('%A')}, {heutiges_datum.day}.{heutiges_datum.month}.{heutiges_datum.year}")
tage = 13
else:
tage = 14
Expand All @@ -162,7 +162,7 @@ def naechster_werktag(datum):

for _ in range(tage):
heutiges_datum = naechster_werktag(heutiges_datum)
naechste_tage.append(f'{heutiges_datum.strftime('%A')}, {heutiges_datum.day}.{heutiges_datum.month}.{heutiges_datum.year}')
naechste_tage.append(f"{heutiges_datum.strftime('%A')}, {heutiges_datum.day}.{heutiges_datum.month}.{heutiges_datum.year}")

return naechste_tage

Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
requests==2.26.0
tabulate==0.9.0
tk==0.1.0


python G:\"Meine Ablage"\Python\WebUntis-Viewer\WebUntis-git\setup.py build
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from cx_Freeze import setup, Executable
from distutils.core import setup
import py2exe

setup(
name="WebUntis-Viewer",
version="1.1",
description="See the Untis Timetable but better",
executables=[Executable("Viewer.py")]
)
setup(console=['Viewer.py'])
Binary file added viewer.ico
Binary file not shown.

0 comments on commit 83e51c4

Please sign in to comment.