Skip to content

Commit

Permalink
fix: restart now works correctly when tgpy is not in PYTHONPATH (e.g.…
Browse files Browse the repository at this point in the history
… in a container)
  • Loading branch information
vanutp committed May 6, 2024
1 parent f483d6c commit 16d3830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgpy/std/restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def restart(msg: str | None = 'Restarted successfully'):
priority=0,
)
module.save()
os.execl(sys.executable, sys.executable, '-m', 'tgpy', *sys.argv[1:])
os.execl(sys.executable, sys.executable, *sys.argv)


__all__ = ['restart']

0 comments on commit 16d3830

Please sign in to comment.