# server.py is contains this import os class server: def start(self): self.pid = os.spawnl(os.P_NOWAIT, "H:\\Gamez\\TA Spring\\Spring.exe") # main.py import server serverobject = server() serverobject .start()