# -*- coding: utf-8 -*-
## ------------------------------------------------------------------------
## begin_: init python
if(True):
  ## init standard lib
  import inspect
  import json
  import os
  import time
  
  ## init non-standard lib
  import jinja2
  import yaml

  ## init local dirs
  ancestor00  =   os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
  ancestor03  =   os.sep.join(ancestor00.split(os.sep)[0:-3])
  os.sys.path.insert(0,ancestor03+'/python2/aapp.core/libpy') ## href="../../aapp.core/libpy"
  ## init local lib
  import FileIoUtils  ## href="../../aapp.core/libpy/FileIoUtils.py"
##endif

## ------------------------------------------------------------------------
## begin_: main
if(True):  
  oFF = FileIoUtils
  timenow = str(time.time())
  nameout = 'output%s.txt'%timenow
  
  ssdata  = '''
  hello: world
  '''
  odata = yaml.load(ssdata)
  bodyout = odata.__repr__()
  
  print bodyout
  print oFF.StringToFile(nameout,bodyout)
##endif

