From cd6155b553f2fd8fa64a5ccd0b86c85e594c4831 Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Wed, 12 Apr 2023 15:52:50 +0200 Subject: [PATCH] Update octosuite.py Using subprocess.call() to list directories instead of os.system() --- octosuite/octosuite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octosuite/octosuite.py b/octosuite/octosuite.py index 814f4c5..f8fa598 100644 --- a/octosuite/octosuite.py +++ b/octosuite/octosuite.py @@ -87,7 +87,7 @@ def check_updates(): def list_dir_and_files(): - os.system('dir' if os.name == 'nt' else 'ls') + subprocess.call('cmd.exe /c dir' if os.name == "nt" else 'ls') # Delete a specified csv file