From 64e38f304e1f9374e3b731e3721434fe33867bb4 Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 21 Mar 2017 02:06:29 +0100 Subject: [PATCH] Only import shutil --- spacy/cli/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/cli/package.py b/spacy/cli/package.py index abd3f6e4e..d23b03821 100644 --- a/spacy/cli/package.py +++ b/spacy/cli/package.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals import json -from shutil import copytree +import shutil from pathlib import Path from .. import about @@ -21,7 +21,7 @@ def package(input_dir, output_dir, force): package_path = main_path / model_name Path.mkdir(package_path, parents=True) - copytree(input_path, package_path / model_name_v) + shutil.copytree(input_path, package_path / model_name_v) create_file(main_path / 'meta.json', json.dumps(meta, indent=2)) create_file(main_path / 'setup.py', TEMPLATE_SETUP.strip()) create_file(main_path / 'MANIFEST.in', TEMPLATE_MANIFEST.strip())