Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanslack committed Jan 15, 2025
1 parent 1d71057 commit 05a9c07
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
11 changes: 6 additions & 5 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ License: GPL3
Change Log:

+------------------------------------+
Mon, 14 Jan 2025 V.5.0.25
Wed, 15 Jan 2025 V.5.0.25

* Checking the output folder before running processes.
* Checking the output directories before running processes.
* Requires minimum Python version 3.9.0 .
* Fix typo in message 'Enable external import of ... package',
thanks to @nxjosephofficial .
* The application has been scheduled to restart automatically, e.g. at the
end of the wizard or after applying settings that require the application
to restart.
* The application has been scheduled to restart automatically, e.g. after
the wizard dialog ends or after applying settings that require
the application to be restarted. Note that this behavior it is disabled
using the Python interpreter (interactive mode).
* Updated copyleft year.

+------------------------------------+
Expand Down
11 changes: 6 additions & 5 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
videomass (5.0.25-1) UNRELEASED; urgency=medium

* Checking the output folder before running processes.
* Checking the output directories before running processes.
* Requires minimum Python version 3.9.0 .
* Fix typo in message 'Enable external import of ... package',
thanks to @nxjosephofficial .
* The application has been scheduled to restart automatically, e.g. at the
end of the wizard or after applying settings that require the application
to restart.
* The application has been scheduled to restart automatically, e.g. after
the wizard dialog ends or after applying settings that require
the application to be restarted. Note that this behavior it is disabled
using the Python interpreter (interactive mode).
* Updated copyleft year.

-- Gianluca Pernigotto <[email protected]> Tue, 14 Jan 2025 15:30:00 +0200
-- Gianluca Pernigotto <[email protected]> Wed, 15 Jan 2025 09:00:00 +0200

videomass (5.0.21-1) UNRELEASED; urgency=medium

Expand Down
24 changes: 11 additions & 13 deletions videomass/gui_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,27 +247,25 @@ def OnExit(self):
def auto_restart(ostype, apptype, portmode):
"""
This function spawn the same executable again, automatically
restarting this application (Videomass), for example after
the wizard dialog or after applying settings that require
the application to be restarted.
restarting this application if required, for example after
the wizard dialog ends or after applying settings that require
the application to be restarted. Note that this behavior
it is disabled using the Python interpreter (interactive
mode).
"""
if not ''.join(sys.argv):
sys.exit()

if apptype == 'pyinstaller':
executable = sys.executable
wx.Execute(f'{executable}', flags=wx.EXEC_SYNC)
wx.Execute(f'{sys.executable}', flags=wx.EXEC_SYNC)
else:
makeportable = '' if not portmode else fr'--make-portable "{portmode}"'
if ostype == 'Windows':
if os.path.basename(sys.argv[0]) == 'launcher':
cmdargs = f'{sys.executable} {sys.argv[0]} {makeportable}'
else:
cmdargs = f'{sys.argv[0]} {makeportable}'
wx.Execute(f'{cmdargs}', flags=wx.EXEC_SYNC)
else:

if os.path.basename(sys.argv[0]) == 'launcher':
cmdargs = f'{sys.executable} {sys.argv[0]} {makeportable}'
wx.Execute(cmdargs, flags=wx.EXEC_SYNC)
else:
cmdargs = f'{sys.argv[0]} {makeportable}'
wx.Execute(f'{cmdargs}', flags=wx.EXEC_SYNC)


def main():
Expand Down

0 comments on commit 05a9c07

Please sign in to comment.