REPO_TEMPLATES = join(dirname(__file__), 'data')
+
+
def temprepo(name):
- def decorator(func):
+ from functools import wraps
+
+ def decorator(func):
+
+ @wraps(func)
def decorated(self, *args, **kwargs):
clean = False
try:
shutil.rmtree(temp, True)
settings.REPOSITORY_PATH = ''
-
+
return decorated
return decorator