From: root sagunt Date: Thu, 6 Jun 2013 10:53:37 +0000 (+0000) Subject: common_code: use __file__ not __name__ X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=fa07302666bf253e236252f0e69cc92c9e7d36ad;p=profitbricks%2Fjenkins-build-scripts.git common_code: use __file__ not __name__ --- 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: