Skip to content

Commit

Permalink
Merge pull request #1332 from PiyushDuggal-source/linux-support
Browse files Browse the repository at this point in the history
Linux support
  • Loading branch information
KillianLucas authored Jul 5, 2024
2 parents 3a3ee3e + 6c29e47 commit 96632d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions interpreter/core/computer/clipboard/clipboard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
import platform
from ...utils.lazy_import import lazy_import

# Lazy import of optional packages
Expand All @@ -8,7 +8,7 @@ class Clipboard:
def __init__(self, computer):
self.computer = computer

if os.name == "nt":
if platform.system() == "Windows" or platform.system() == "Linux":
self.modifier_key = "ctrl"
else:
self.modifier_key = "command"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@
# Set offline for all local models
interpreter.offline = True

import os
import os, platform

# Get the current user's login name
username = os.getlogin()
# Determine the operating system
operating_system = os.name
operating_system = platform.system()
# Find the current working directory
cwd = os.getcwd()

Expand Down

0 comments on commit 96632d2

Please sign in to comment.