Skip to content

Commit

Permalink
fix: fix file not found error on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
pradishb committed Apr 30, 2024
1 parent b277d9f commit 4fde75b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "yappr"
version = "1.0.3"
version = "1.0.4"
dependencies = []
requires-python = ">=3"
authors = [{ name = "Pradish Bijukchhe", email = "[email protected]" }]
Expand Down
4 changes: 3 additions & 1 deletion yappr/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import tkinter as tk
import traceback
from argparse import ArgumentParser
from pathlib import Path
from threading import Thread
from tkinter.messagebox import showerror # type: ignore
from typing import Any
Expand Down Expand Up @@ -47,7 +48,8 @@ def wrapped(*args: Param.args, **kwargs: Param.kwargs) -> None:
return

# if exit flag was set by updater
os.execl(sys.executable, sys.executable, *sys.argv)
p = Path(sys.executable)
os.execl(p, p.stem, *sys.argv)
except Exception:
logger.exception("Unhandled Exception")
root = tk.Tk()
Expand Down

0 comments on commit 4fde75b

Please sign in to comment.