Synology DSM6.0.2 toolkit framework

1. pythonize EnvDeploy and PkgCreate.py
2. EnvDeploy change sourceforge directory
This commit is contained in:
kevinfang
2016-11-11 19:04:03 +08:00
parent 2b3daa7501
commit 709c456afa
14 changed files with 1775 additions and 1597 deletions

11
include/python/cache.py Normal file
View File

@ -0,0 +1,11 @@
class cache(dict):
def __init__(self, func):
self.func = func
def __call__(self, *args):
return self[args]
def __missing__(self, key):
result = self[key] = self.func(*key)
return result