2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-24 13:09:01 +00:00

Merge pull request #708 from codingCoffee/stuff

fixed path
This commit is contained in:
Ameya Shenoy 2018-08-16 13:06:33 +05:30 committed by GitHub
commit e66c9b6c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ def which(executable, raise_err = False):
def setup_env(bench_path='.', python = 'python'): def setup_env(bench_path='.', python = 'python'):
python = which(python, raise_err = True) python = which(python, raise_err = True)
pip = os.path.join(bench_path, 'env', 'bin', 'pip') pip = os.path.join('env', 'bin', 'pip')
exec_cmd('virtualenv -q {} -p {}'.format('env', python), cwd=bench_path) exec_cmd('virtualenv -q {} -p {}'.format('env', python), cwd=bench_path)
exec_cmd('{} -q install --upgrade pip'.format(pip), cwd=bench_path) exec_cmd('{} -q install --upgrade pip'.format(pip), cwd=bench_path)