Tool to Detect Surrounding Shell
Project description
Shellingham detects what shell the current Python executable is running in.
Usage
>>> import shellingham >>> shellingham.detect_shell() ('bash', '/bin/bash')
detect_shell pokes around the process’s running environment to determine what shell it is run in. It returns a 2-tuple:
The executable name (without extension on Windows), always lowercased.
The command used to run the shell.
ShellDetectionFailure is raised if detect_shell fails to detect the surrounding shell.
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
shellingham-1.2.4.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for shellingham-1.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 869c760320b6d4cd88ac5bdc2a6a40c042fb388c5fcd056f8a07a82d9859cc40 |
|
MD5 | 73f36f3b0f36cd4de200098834d9df9d |
|
BLAKE2b-256 | 1b24676849786c22fcc2cdf96dd8f7f3b52d5de47a5a1bc261605b5ce1763c72 |