hoge.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- Python -*-
00003 
00004 hoge_spec = ["implementation_id", "hoge",
00005              "type_name",         "hoge",
00006              "description",       "hoge component",
00007              "version",           "1.0",
00008              "vendor",            "Shinji Kurihara",
00009              "category",          "example",
00010              "activity_type",     "DataFlowComponent",
00011              "max_instance",      "10",
00012              "language",          "Python",
00013              "lang_type",         "script",
00014              ""]
00015 
00016 class HOGE:
00017     def __init__(self):
00018         pass
00019 
00020 def echo(*args):
00021     print "hello HOGE"
00022 
00023         
00024 
00025 """
00026 import sys
00027 argv = sys.argv[1:]
00028 for x in argv:
00029         try:
00030                 f = open(x)
00031                 print"---",x,"---"
00032                 for i in range(15):
00033                         print i+1,f.readline(),
00034                 print "---",x,"---\n"
00035                 f.close()
00036         except IOError:
00037                 print "Can't find file:", x             
00038 
00039 """
00040 
00041                 


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:28