Skip to content

Commit

Permalink
Pypi execution
Browse files Browse the repository at this point in the history
  • Loading branch information
GauravS2507 committed May 21, 2024
1 parent 67da172 commit 461293e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="typing_test_sdd",
version="1.0.1",
version="1.0.2",
author="Gaurav Surve",
url="https://github.com/GauravS2507/Gaurav-Surve-SDD2-Project---Typing-Test",
description="TKinter GUI Typing Test - Gaurav Surve 122SDD2",
Expand All @@ -20,7 +20,7 @@
],
entry_points={
"gui_scripts": [
"typing-ctk = typing_test:start_app"
"typing-ctk = typing_test_sdd:start_app"
]
},
classifiers=[
Expand Down
1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FileNotFoundError [Errno 2] No such file or directory: 'typing_test\\words.json'
4 changes: 2 additions & 2 deletions typing_test_sdd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def update_current_word():
# Receives word from JSON File "Words"
def get_words():
global sampled_words
with open(path.join("typing_test", "words.json")) as file:
with open(path.join("typing_test_sdd", "words.json")) as file:
words = json.load(file)
sampled_words = random.sample(words, 100)

Expand Down Expand Up @@ -340,7 +340,7 @@ def keybind(button, action):

def start_app():
try:
global current_scaling, timer_seconds, score, root, timer_choice, is_on_main_window, is_on_typing_window, scale, actions
global current_scaling, timer_seconds, score, root, timer_choice, is_on_main_window, is_on_typing_window, scale, actions
get_words()
timer_seconds = 10
score = 0 # Keeps score on how many words are right
Expand Down

0 comments on commit 461293e

Please sign in to comment.