Skip to content

Commit

Permalink
Fix for WSL2 and Ubuntu LTS 20.04
Browse files Browse the repository at this point in the history
In WSL2 with an Ubuntu LTS 20.04 installation, the result of "cat /proc/versoin" contains "microsoft" in lower case.
  • Loading branch information
holgi authored Jun 3, 2020
1 parent 943372e commit 76e1b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyperclip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def determine_clipboard():

if platform.system() == 'Linux':
with open('/proc/version', 'r') as f:
if "Microsoft" in f.read():
if "microsoft" in f.read().lower():
return init_wsl_clipboard()

# Setup for the MAC OS X platform:
Expand Down

0 comments on commit 76e1b7d

Please sign in to comment.