You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
454 B
18 lines
454 B
import shlex |
|
|
|
def get_app_class(template): |
|
class App(template): |
|
def F_main(self): |
|
with open('/etc/init/start') as f: |
|
lines = f.readlines() |
|
for line in lines: |
|
if line.strip(): |
|
last_pid = self.os.launch(*shlex.split(line)) |
|
|
|
self.transfer_console(last_pid) |
|
self.next_function = 'loop' |
|
|
|
def F_loop(self): |
|
pass |
|
|
|
return App
|
|
|