python_launcher.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 import os,sys
00003 from optparse import OptionParser
00004 
00005 if __name__ == '__main__':
00006     parser = OptionParser()
00007     parser.add_option('--file','-f',action='store',type='string',dest='file',default=None,help='set absolute path for executive file')
00008     (options, args) = parser.parse_args()
00009     if options.file is None:
00010         print 'please set file path'
00011     else:
00012         os.chdir(os.path.dirname(options.file))
00013         os.system("python " + os.path.basename(options.file))
00014 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


openrtm
Author(s): AIST, ros package is maintained by Kei Okada
autogenerated on Tue Jul 23 2013 11:48:21