Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux support #1332

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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