Searched refs:env_dir (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_venv.py | 40 self.env_dir = os.path.realpath(tempfile.mkdtemp()) 56 rmtree(self.env_dir) 65 return os.path.join(self.env_dir, *args) 83 rmtree(self.env_dir) 84 self.run_with_capture(venv.create, self.env_dir) 112 env_name = os.path.split(self.env_dir)[1] 115 context = builder.ensure_directories(self.env_dir) 119 context = builder.ensure_directories(self.env_dir) 132 rmtree(self.env_dir) 133 self.run_with_capture(venv.create, self.env_dir) [all …]
|
/external/python/cpython3/Lib/venv/ |
D | __init__.py | 51 def create(self, env_dir): argument 58 env_dir = os.path.abspath(env_dir) 59 context = self.ensure_directories(env_dir) 85 def ensure_directories(self, env_dir): argument 99 if os.path.exists(env_dir) and self.clear: 100 self.clear_directory(env_dir) 102 context.env_dir = env_dir 103 context.env_name = os.path.split(env_dir)[1] 106 create_if_needed(env_dir) 119 libpath = os.path.join(env_dir, 'Lib', 'site-packages') [all …]
|
/external/python/cpython3/Doc/library/ |
D | venv.rst | 139 .. method:: create(env_dir) 150 def create(self, env_dir): 153 env_dir is the target directory to create an environment in. 155 env_dir = os.path.abspath(env_dir) 156 context = self.ensure_directories(env_dir) 166 .. method:: ensure_directories(env_dir) 229 .. function:: create(env_dir, system_site_packages=False, clear=False, \ 233 :meth:`~EnvBuilder.create` method with the *env_dir* argument. 292 os.environ['VIRTUAL_ENV'] = context.env_dir
|