Skip to main content

Python utility to check whether the current script runs inside Windows' WSL

Project description

Python utility to check whether the current script runs inside Windows' WSL.

Here's how to use it:

from iswsl import is_wsl

if is_wsl():
    print('Running inside WSL')
else:
    print('Running outside WSL')

Project details


Download files

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

Source Distribution

iswsl-1.0.1.tar.gz (1.4 kB view details)

Uploaded Source

File details

Details for the file iswsl-1.0.1.tar.gz.

File metadata

  • Download URL: iswsl-1.0.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for iswsl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 93bd9d18c83680de1ae5023b136b505a7ace32f62820ff7bec20e148d1adff7b
MD5 b84539d0736298f697346133cb737de5
BLAKE2b-256 87a73dc4285d060c97c38b8e5cd8ccb444a6273ba2f002c29c1c508c2bff4eeb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page