Skip to content

Commit d8a76af

Browse files
add support for linux
1 parent b9a50f5 commit d8a76af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interpreter/core/computer/clipboard/clipboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os
1+
import platform
22
from ...utils.lazy_import import lazy_import
33

44
# Lazy import of optional packages
@@ -8,7 +8,7 @@ class Clipboard:
88
def __init__(self, computer):
99
self.computer = computer
1010

11-
if os.name == "nt":
11+
if platform.system() == "Windows" or platform.system() == "Linux":
1212
self.modifier_key = "ctrl"
1313
else:
1414
self.modifier_key = "command"

0 commit comments

Comments
 (0)