Skip to main content
Help us improve Python packaging – donate today!

Convert paths from Windows to UNIX and vice versa.

Project Description

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

Release history Release notifications

This version
History Node

0.2.31

History Node

0.2.3

History Node

0.2.1

History Node

0.2.0

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
slbsl-0.2.31.zip (6.2 kB) Copy SHA256 hash SHA256 Source None Oct 20, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page