Convert paths from Windows to UNIX and vice versa.
Written to slightly ease the pain of working in environments that use both like a bash on Windows. Do not pass arbitrary text to the tool, only a path (though it may be wrapped in quotation marks).
Installation
pip install slbsl
Dependencies
pyperclip for clipboard functionality.
Tests
You need pytest installed.
py.test test_slbsl -v
Usage
The package installs a few shell scripts that you can call:
sl [path] : Converts <path> or clipboard content to UNIX convention. bsl [path] : Converts <path> or clipboard content to Windows convention. fsl [path] : Flips slashes in <path> or clipboard content to their opposite individually. esl [path] : Equalizes slashes in <path> or clipboard content depending on the majority. In case of a draw, favors backslashes on Windows and slashes on UNIX.
The result is returned to the commandline and stored additionally in the clipboard.
Why the stupid name?
sl ash b ack sl ash
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slbsl-0.2.31.zip
(6.2 kB
view details)
File details
Details for the file slbsl-0.2.31.zip.
File metadata
- Download URL: slbsl-0.2.31.zip
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
828dc5971a7202376ef2c90ffc8f9681f9c544642102c3599825873532d1716e
|
|
| MD5 |
cdf966b58d6d14fe0d78a882c5ac49fe
|
|
| BLAKE2b-256 |
03807dc52c807f66dfb025a75acce5ee770cd5bf58ef176816859950194f32fb
|