Mentions légales du service

Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment