Mercurial > kallithea
diff pylons_app/websetup.py @ 470:935dddee7422 celery
merged with default
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 11 Sep 2010 03:42:57 +0200 |
parents | e94f4e54dc03 |
children | 6b934c9607e7 |
line wrap: on
line diff
--- a/pylons_app/websetup.py Sat Sep 11 01:55:46 2010 +0200 +++ b/pylons_app/websetup.py Sat Sep 11 03:42:57 2010 +0200 @@ -8,7 +8,8 @@ import logging import os import sys -import shutil +import tarfile + log = logging.getLogger(__name__) ROOT = dn(dn(os.path.realpath(__file__))) @@ -28,8 +29,10 @@ if not os.path.isdir(REPO_TEST_PATH): os.mkdir(REPO_TEST_PATH) - from_ = '/home/marcink/workspace-python/vcs' - shutil.copytree(from_, os.path.join(REPO_TEST_PATH,'vcs_test')) + cur_dir = dn(os.path.abspath(__file__)) + tar = tarfile.open(jn(cur_dir,'tests',"vcs_test.tar.gz")) + tar.extractall(REPO_TEST_PATH) + tar.close() tests = True