mirror of
https://github.com/janeczku/calibre-web.git
synced 2025-05-13 22:06:50 +02:00
Bugfix for restarting on ubuntu 20.04 on restart
This commit is contained in:
parent
660d1fb1ff
commit
3d8256b6a6
@ -153,7 +153,7 @@ class WebServer(object):
|
|||||||
# The value of __package__ indicates how Python was called. It may
|
# The value of __package__ indicates how Python was called. It may
|
||||||
# not exist if a setuptools script is installed as an egg. It may be
|
# not exist if a setuptools script is installed as an egg. It may be
|
||||||
# set incorrectly for entry points created with pip on Windows.
|
# set incorrectly for entry points created with pip on Windows.
|
||||||
if getattr(__main__, "__package__", "") == "" or (
|
if getattr(__main__, "__package__", "") in ["", None] or (
|
||||||
os.name == "nt"
|
os.name == "nt"
|
||||||
and __main__.__package__ == ""
|
and __main__.__package__ == ""
|
||||||
and not os.path.exists(py_script)
|
and not os.path.exists(py_script)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user