From dc471784e2e413638ccb116f3fd0c2827bf6053c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=BC=E6=B5=B7?= <1160945909@qq.com> Date: Fri, 11 Jul 2025 15:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20=E8=B0=83=E8=AF=95.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 调试.py | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 调试.py diff --git a/调试.py b/调试.py deleted file mode 100644 index 8ec61d5..0000000 --- a/调试.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -import sys -sys.setdefaultencoding('utf-8') -clr.AddReference('IronPython') -from IronPython.Hosting import Python - -def wrap_d(f): - func_name = f.__name__ - del f - def wrapper(e): - engine = Python.CreateEngine({'Debug': True}) - scope = engine.CreateScope() - scope.SetVariable('this', this) - engine.CreateScriptSourceFromFile(r'D:\source\repos\ZHIRONG.Report\ZHIRONG.Report\ZHIRONG.Report.DevelopmentCostDetails.py').Execute(scope) - return getattr(scope, func_name)(e) - return wrapper - -def wrap_a(f): - func_name = f.__name__ - del f - def wrapper(e,a): - engine = Python.CreateEngine({'Debug': True}) - scope = engine.CreateScope() - scope.SetVariable('this', this) - engine.CreateScriptSourceFromFile(r'D:\source\repos\ZHIRONG.Report\ZHIRONG.Report\ZHIRONG.Report.DevelopmentCostDetails.py').Execute(scope) - return getattr(scope, func_name)(e,a) - return wrapper - - -@wrap_a -def BuilderReportSqlAndTempTable(e,a): - pass - -@wrap_d -def GetReportHeaders(e): - pass - -@wrap_d -def GetReportTitles(e): - pass - - -