Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import moo
- class Run:
- def __init__(self):
- self.fname = doc.get_filename()
- def push(self):
- import subprocess
- self.out = subprocess.check_output(['python','-u',self.fname])
- return self.out
- r = Run()
- out = r.push()
- if str(out) != '':
- moo.info_dialog('Python says:', secondary_text=out, parent=None)
- else:
- pass
- del r,out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement