MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / copy_files_helper

Function copy_files_helper

python-package/setup.py:33–40  ·  view source on GitHub ↗
(folder_name)

Source from the content-addressed store, hash-verified

31def copy_files(use_gpu=False):
32
33 def copy_files_helper(folder_name):
34 src = os.path.join(CURRENT_DIR, os.path.pardir, folder_name)
35 if os.path.exists(src):
36 dst = os.path.join(CURRENT_DIR, 'compile', folder_name)
37 shutil.rmtree(dst, ignore_errors=True)
38 distutils.dir_util.copy_tree(src, dst, verbose=0)
39 else:
40 raise Exception('Cannot copy {0} folder'.format(src))
41
42 if not os.path.isfile(os.path.join(CURRENT_DIR, '_IS_SOURCE_PACKAGE.txt')):
43 copy_files_helper('include')

Callers 1

copy_filesFunction · 0.85

Calls 2

joinMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected