Skip to content

Commit

Permalink
Update to Version 17.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasj13 committed Feb 12, 2022
1 parent 49972e5 commit 0ffffd4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
graft topasgraphsim/src/Azure-ttk-theme
graft topasgraphsim/src/resources
graft topasgraphsim/src/resources/temp
exclude __pychache__/
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="topasgraphsim",
version="17.3.0",
version="17.3.1",
author="Sebastian Schäfer",
author_email="[email protected]",
description="GUI to plot the results of a topas simulation",
Expand Down Expand Up @@ -38,6 +38,7 @@
"topasgraphsim.src.classes",
"topasgraphsim.src.functions",
],
scripts=["topasgraphsim/topasgraphsim.py"],
entry_points={
"console_scripts": ["topasgraphsim=topasgraphsim.topasgraphsim:topasgraphsim"],
},
Expand Down
2 changes: 1 addition & 1 deletion topasgraphsim/src/classes/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class CheckForUpdates:
def __init__(self):

currentVersion = "17.3.0"
currentVersion = "17.3.1"
try:
newestVersion = requests.get(
"https://api.github.com/repos/sebasj13/topasgraphsim/releases/latest"
Expand Down
2 changes: 1 addition & 1 deletion topasgraphsim/src/resources/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, parent, lang, mode):
"de": "TopasGraphSim\n\nAutor: Sebastian Schäfer",
"en": "TopasGraphSim\n\nAuthor: Sebastian Schäfer",
}
version = {"de": "Version: 17.3.0\n ", "en": "Version: 17.3.0\n "}
version = {"de": "Version: 17.3.1\n ", "en": "Version: 17.3.1\n "}

if mode == True:
pic = "light"
Expand Down
Empty file.
7 changes: 5 additions & 2 deletions topasgraphsim/topasgraphsim.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 16 12:47:50 2021
Expand Down Expand Up @@ -31,7 +32,8 @@ def topasgraphsim():

if drag.install_success == True:
python = sys.executable
os.execl(python, python, *sys.argv)
args = "-m topasgraphsim"
os.execl(python, python, args)
return

if "TkinterDnD2" in sys.modules.keys():
Expand All @@ -40,7 +42,8 @@ def topasgraphsim():
except RuntimeError:
ProfileHandler().set_attribute("draganddrop", False)
python = sys.executable
os.execl(python, python, *sys.argv)
args = args = "-m topasgraphsim"
os.execl(python, python, args)
return
else:
ProfileHandler().set_attribute("draganddrop", False)
Expand Down

0 comments on commit 0ffffd4

Please sign in to comment.