删除 调试.py
This commit is contained in:
43
调试.py
43
调试.py
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user