Python package for calling wslpath command in WSL environment
Project description
wslpath-python
This is a simple Python wrapper around wslpath
command found in Windows Subsystem for Linux (WSL) environment.
This package contains a single function wslpath
that calls the wslpath
command with appropriate arguments.
Requirements
Tha package has no additional requirements. Developed and tested in Python 3.9, but it should work in Python 3.5 and above.
Installation
This package can be installed using pip
pip install wslpath-python
Example usage
>>> from wslpath import wslpath
>>>
>>> wslpath(r'C:\Users\macie')
'/mnt/c/Users/macie'
>>>
>>> from pathlib import Path
>>> wslpath(Path(r'C:\Users\macie'))
PosixPath('/mnt/c/Users/macie')
>>>
>>> wslpath('.')
'.'
>>> wslpath('.', force_absolute_path=True)
'/mnt/c/Users/macie/'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wslpath-python-0.0.3.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for wslpath_python-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13c102149aa8df60aa6db88ab13bc1a6027648c31e350c918940dfdc5a9c5acd |
|
MD5 | 5627c677f089dac456a7f3a9f3572c88 |
|
BLAKE2b-256 | 89e5dd22421bd326842381943171318821c8c0cc22b01e0f96204493fe6b5477 |