Skip to content

Commit 6c29e47

Browse files
Use platform.system() for OS detection
1 parent d8a76af commit 6c29e47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)