Commit 81527c2d authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Fix bug due to the decorator... Fixed thanks to functools

parent 24f115e0
......@@ -28,6 +28,7 @@ from __future__ import print_function
import argparse
import os
import sys
from functools import wraps
# Custom imports
import cadbiom.commons as cm
......@@ -37,7 +38,7 @@ LOGGER = cm.logger()
def check_output_dir(function):
"""Decorator used process some arguments from argparse"""
@wraps(function)
def modified_func(*args, **kwargs):
"""Fix paths in arguments (add trailing '/')"""
output_dir = args[0]['output']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment