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.6.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for shellingham-1.2.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52e8047d76abf52edbdf1ffed8cd46cab4dbef4f71a1baa1085afdaa272cef83 |
|
MD5 | 302d88e09b3e6ee158b9fbd190a655c7 |
|
BLAKE2b-256 | 8055b0e4db95e62cc1fbe00b0ed87507ebfdc559fac6a0dbb36408223df6dc07 |