File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
terminal_interface/profiles/defaults Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import os
1+ import platform
22from ...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"
Original file line number Diff line number Diff line change 234234# Set offline for all local models
235235interpreter .offline = True
236236
237- import os
237+ import os , platform
238238
239239# Get the current user's login name
240240username = os .getlogin ()
241241# Determine the operating system
242- operating_system = os . name
242+ operating_system = platform . system ()
243243# Find the current working directory
244244cwd = os .getcwd ()
245245
You can’t perform that action at this time.
0 commit comments