Mercurial > public > src > rhodecode
diff pylons_app/websetup.py @ 513:e94f4e54dc03
tests fix, put vcs testing tarball
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 11 Sep 2010 03:35:33 +0200 |
parents | 7c978511c951 |
children | 6b934c9607e7 |
line wrap: on
line diff
--- a/pylons_app/websetup.py Sat Sep 11 02:56:22 2010 +0200 +++ b/pylons_app/websetup.py Sat Sep 11 03:35:33 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