How to create a Linuxterminal with a Pythonclass in Eclipse

50 Views Asked by At

I'm trying to figure out how to open a terminal in linux, when I'm going to run my Pythoncode in Eclipse.

So I got the idea to use os.popen("gksu -S command,"w"). But for this way I need to enter my password. Can I add my password anywhere in the script or into the os.open command?

Thanks for the help. :)

Here is my Code:

import os
class Init(object):

   def prepareVM(self):
       os.popen("gksu -S virtualbox,"w")

   prepareVM(super)
0

There are 0 best solutions below