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
2
2
from ...utils .lazy_import import lazy_import
3
3
4
4
# Lazy import of optional packages
@@ -8,7 +8,7 @@ class Clipboard:
8
8
def __init__ (self , computer ):
9
9
self .computer = computer
10
10
11
- if os . name == "nt " :
11
+ if platform . system () == "Windows" or platform . system () == "Linux " :
12
12
self .modifier_key = "ctrl"
13
13
else :
14
14
self .modifier_key = "command"
Original file line number Diff line number Diff line change 234
234
# Set offline for all local models
235
235
interpreter .offline = True
236
236
237
- import os
237
+ import os , platform
238
238
239
239
# Get the current user's login name
240
240
username = os .getlogin ()
241
241
# Determine the operating system
242
- operating_system = os . name
242
+ operating_system = platform . system ()
243
243
# Find the current working directory
244
244
cwd = os .getcwd ()
245
245
You can’t perform that action at this time.
0 commit comments