From fa07302666bf253e236252f0e69cc92c9e7d36ad Mon Sep 17 00:00:00 2001 From: root sagunt Date: Thu, 6 Jun 2013 10:53:37 +0000 Subject: [PATCH] common_code: use __file__ not __name__ --- common_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_code.py b/common_code.py index 6748f56..2cb344c 100755 --- a/common_code.py +++ b/common_code.py @@ -22,7 +22,7 @@ def logger_init( ): if log_name == None: - log_name = re.match('^(.*/jenkins_build_script/)(.*)',__name__).groups()[1] + log_name = re.match('^(.*/jenkins_build_script/)(.*)',__file__).groups()[1] if log_level == None: try: -- 2.39.5