improve abspath-resolve

This commit is contained in:
Thor77 2015-07-13 20:35:37 +02:00
parent bd9be87867
commit 4ad9bf1b44
1 changed files with 4 additions and 1 deletions

View File

@ -118,7 +118,10 @@ class Client:
re_dis_connect = re.compile(r"'(.*)'\(id:(\d*)\)")
re_disconnect_invoker = re.compile(r"invokername=(.*)\ invokeruid=(.*)\ reasonmsg")
abspath = sep.join(__file__.split(sep)[:-1]) + sep
path_split = __file__.split(sep)[:-1]
abspath = sep.join(path_split)
if len(path_split) > 0:
abspath += sep
def parse_logs(logpath, file_log=False):