import os
import shutil


def get_root():
    root_dir = os.path.dirname(os.path.abspath(__file__))
    return os.path.split(root_dir)[0]


def absolute_path(relative_path):
    return os.path.join(get_root(), relative_path)


def append_path(module, relative_path):
    return os.path.join(get_dir(module), relative_path)


def get_dir(module):
    return os.path.dirname(os.path.abspath(module))


def is_project_in_cbica():
    current_file_path = os.path.dirname(os.path.abspath(__file__))
    return current_file_path.split('/')[1] == 'cbica'


def copy_folder(src_path, dest_path, delete_src=False):
    if os.path.isdir(dest_path):
        shutil.rmtree(dest_path)
    shutil.copytree(src_path, dest_path)
    if delete_src:
        shutil.rmtree(src_path)

62dc926c84f333733e41dd587bea293811d7b515
<mask token>


def absolute_path(relative_path):
    return os.path.join(get_root(), relative_path)


def append_path(module, relative_path):
    return os.path.join(get_dir(module), relative_path)


def get_dir(module):
    return os.path.dirname(os.path.abspath(module))


<mask token>


def copy_folder(src_path, dest_path, delete_src=False):
    if os.path.isdir(dest_path):
        shutil.rmtree(dest_path)
    shutil.copytree(src_path, dest_path)
    if delete_src:
        shutil.rmtree(src_path)

<mask token>


def absolute_path(relative_path):
    return os.path.join(get_root(), relative_path)


def append_path(module, relative_path):
    return os.path.join(get_dir(module), relative_path)


def get_dir(module):
    return os.path.dirname(os.path.abspath(module))


def is_project_in_cbica():
    current_file_path = os.path.dirname(os.path.abspath(__file__))
    return current_file_path.split('/')[1] == 'cbica'


def copy_folder(src_path, dest_path, delete_src=False):
    if os.path.isdir(dest_path):
        shutil.rmtree(dest_path)
    shutil.copytree(src_path, dest_path)
    if delete_src:
        shutil.rmtree(src_path)

<mask token>


def get_root():
    root_dir = os.path.dirname(os.path.abspath(__file__))
    return os.path.split(root_dir)[0]


def absolute_path(relative_path):
    return os.path.join(get_root(), relative_path)


def append_path(module, relative_path):
    return os.path.join(get_dir(module), relative_path)


def get_dir(module):
    return os.path.dirname(os.path.abspath(module))


def is_project_in_cbica():
    current_file_path = os.path.dirname(os.path.abspath(__file__))
    return current_file_path.split('/')[1] == 'cbica'


def copy_folder(src_path, dest_path, delete_src=False):
    if os.path.isdir(dest_path):
        shutil.rmtree(dest_path)
    shutil.copytree(src_path, dest_path)
    if delete_src:
        shutil.rmtree(src_path)

import os
import shutil


def get_root():
    root_dir = os.path.dirname(os.path.abspath(__file__))
    return os.path.split(root_dir)[0]


def absolute_path(relative_path):
    return os.path.join(get_root(), relative_path)


def append_path(module, relative_path):
    return os.path.join(get_dir(module), relative_path)


def get_dir(module):
    return os.path.dirname(os.path.abspath(module))


def is_project_in_cbica():
    current_file_path = os.path.dirname(os.path.abspath(__file__))
    return current_file_path.split('/')[1] == 'cbica'


def copy_folder(src_path, dest_path, delete_src=False):
    if os.path.isdir(dest_path):
        shutil.rmtree(dest_path)
    shutil.copytree(src_path, dest_path)
    if delete_src:
        shutil.rmtree(src_path)
