Skip to content

Commit 96632d2

Browse files
authored
Merge pull request #1332 from PiyushDuggal-source/linux-support
Linux support
2 parents 3a3ee3e + 6c29e47 commit 96632d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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"

interpreter/terminal_interface/profiles/defaults/codestral-few-shot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@
234234
# Set offline for all local models
235235
interpreter.offline = True
236236

237-
import os
237+
import os, platform
238238

239239
# Get the current user's login name
240240
username = os.getlogin()
241241
# Determine the operating system
242-
operating_system = os.name
242+
operating_system = platform.system()
243243
# Find the current working directory
244244
cwd = os.getcwd()
245245

0 commit comments

Comments
 (0)