Skip to content

Commit 6e98457

Browse files
committed
Use os.sep
1 parent 4686893 commit 6e98457

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/venv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
logger = logging.getLogger(__name__)
1818

1919
def _venv_path(name):
20-
return sysconfig.get_path(name, scheme='venv').removeprefix(f'{sys.prefix}/')
20+
return sysconfig.get_path(name, scheme='venv').removeprefix(sys.prefix + os.sep)
2121

2222

2323
class EnvBuilder:

0 commit comments

Comments
 (0)