Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d32166a1 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald

when building logname from executable, discard the directory name

parent 5848c0e9
......@@ -335,7 +335,7 @@ class __Internal:
def __init__(self):
"""init the loggers"""
logName = sys.argv[0].replace('.py', '') + '.log'
logName = os.path.basename(sys.argv[0]).replace('.py', '') + '.log'
self.logger = logging.getLogger(logName)
if os.name == 'nt':
haveDevLog = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment