diff --git a/App/CDE.py b/App/CDE.py index ff365ec..278b3ec 100644 --- a/App/CDE.py +++ b/App/CDE.py @@ -49,8 +49,8 @@ def compile_fun(self,e): with open( "program.c","w" ) as cfile: cfile.write(code) cfile.close() - os.system("gcc program.c -o program") - os.system(".\program") + subprocess.call('gcc program.c -o program', shell=False) + subprocess.call('.\program', shell=False) elif language == 'C++': with open( "program.cpp","w" ) as cppfile: cppfile.write(code) @@ -64,7 +64,7 @@ def compile_fun(self,e): subprocess.call('python program.py', shell=False) else: print("Error") - return + if __name__ == '__main__': app = wx.App(False) app_gui = GUI(None) diff --git a/README.md b/README.md index d5d0d9e..ecb2cbc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # CD-E Your IDE +[![CodeFactor](https://www.codefactor.io/repository/github/balaji303/cde/badge/main)](https://www.codefactor.io/repository/github/balaji303/cde/overview/main) + CD-E is a * Very small size,