diff --git a/run-all-codes.py b/run-all-codes.py
index 43211c1ecebd5fbc3f9ad24e2ec6ad69ad85437b..04fc75ae4ccb73927940fc4306a06a4633337e42 100644
--- a/run-all-codes.py
+++ b/run-all-codes.py
@@ -1,6 +1,4 @@
-
-
-import os
+import subprocess
 
 """
 v2
@@ -13,7 +11,7 @@ def execute_python_file(file_path):
 	excute a py program from a file_path
 	"""
 	try :
-		os.system(f'python {file_path}')
+		subprocess.run(['python', file_path])
 	except FileNotFoundError:
 		print(f"Error: The file '{file_path}' does not exist.")