source: n4d/trunk/fuentes/install-files/usr/share/n4d/xmlrpc-server/class_skel.py @ 105

Last change on this file since 105 was 103, checked in by hectorgh, 5 years ago

adding files

File size: 306 bytes
Line 
1# -*- coding: utf-8 -*-
2import subprocess
3
4class %CLASSNAME%:
5       
6        def %METHOD%(self,*params):
7               
8                popen_list=[]
9                popen_list.append("%BINARY%")
10               
11                for param in params:
12                        popen_list.append(str(param))
13               
14                output = subprocess.Popen(popen_list, stdout=subprocess.PIPE).communicate()[0]
15               
16                return output
Note: See TracBrowser for help on using the repository browser.