mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
only display the program name, not the path
This commit is contained in:
parent
6f4e902b3e
commit
1409d6c470
@ -47,7 +47,7 @@ class Config(object):
|
|||||||
def __init__(self, usage=None, prog=None):
|
def __init__(self, usage=None, prog=None):
|
||||||
self.settings = make_settings()
|
self.settings = make_settings()
|
||||||
self.usage = usage
|
self.usage = usage
|
||||||
self.prog = prog or sys.argv[0]
|
self.prog = prog or os.path.basename(sys.argv[0])
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
if name not in self.settings:
|
if name not in self.settings:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user