steve_bank
Diabetic retinopathy and poor eyesight. Typos ...
Executing C/C++ code from Python
I copied the following from the widows folder to a folder c:\executables and one from the GCC folder.
Plus the C misc.exe.
cmd.exe
libatomic-1.dll
libgcc_s_seh-1.dll
libgomp-1.dll
libquadmath-0
libssp-0.dll
libstdc++-6.dll
libwinpthread-1.dllmisc.exe
misc.exe
To execute the C code from Python
import os
os.chdir('c:\\executables')
os.system('cmd.exe')
os.system('misc.exe')
I copied the following from the widows folder to a folder c:\executables and one from the GCC folder.
Plus the C misc.exe.
cmd.exe
libatomic-1.dll
libgcc_s_seh-1.dll
libgomp-1.dll
libquadmath-0
libssp-0.dll
libstdc++-6.dll
libwinpthread-1.dllmisc.exe
misc.exe
To execute the C code from Python
import os
os.chdir('c:\\executables')
os.system('cmd.exe')
os.system('misc.exe')