Skip to content

Commit

Permalink
修复: re.search(r"(?<=/)[a-zA-Z0-9-_]+(?=.py)", __file__).group() 正则匹配报错
Browse files Browse the repository at this point in the history
青龙2.13 docker测试通过
  • Loading branch information
keven committed Jun 5, 2022
1 parent 0dc3adb commit 74d28d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ql_log_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

class QlLogScan(Depend):
def __init__(self):
self.pyname = re.search(r"(?<=\/)[a-zA-Z0-9-_]+(?=\.py)", __file__).group()
self.pyname = os.path.basename(__file__)
print(self.only_check(self.pyname, os.path.abspath(__file__)))
self.ql_log_path = self.get_env("QL_LOG_PATH", self.get_ql_path() + "log/")
self.filter_dir_list = self.not2append(["^\.tmp$", "^update$", self.pyname + "$"],
Expand Down

0 comments on commit 74d28d2

Please sign in to comment.