parameters: (self, file_path)
docstring: Add timestamp suffix to file name. Sets print file path.
docstring_summary: Add timestamp suffix to file name. Sets print file path.
docstring_tokens: Add timestamp suffix to file name . Sets print file path .
function: def set_print_file_path(self, file_path):
          """Add timestamp suffix to file name. Sets print file path."""
          print_file_path = os.path.realpath(file_path)
          if os.path.isdir(print_file_path):
              raise IOError("For 'context.set_context', the argument 'print_file_path' should be file path, "
                            "but got directory {}.".format(file_path))
  
          if os.path.exists(print_file_path):
              _path, _file_name = os.path.split(print_file_path)
              path = _make_directory(_path)
              file_name = _get_print_file_name(_file_name)
              full_file_name = os.path.join(path, file_name)
          else:
              full_file_name = print_file_path
          self.set_param(ms_ctx_param.print_file_path, full_file_name)
function_tokens: def set_print_file_path ( self , file_path ) : print_file_path = os . path . realpath ( file_path ) if os . path . isdir ( print_file_path ) : raise IOError ( "For 'context.set_context', the argument 'print_file_path' should be file path, " "but got directory {}." . format ( file_path ) ) if os . path . exists ( print_file_path ) : _path , _file_name = os . path . split ( print_file_path ) path = _make_directory ( _path ) file_name = _get_print_file_name ( _file_name ) full_file_name = os . path . join ( path , file_name ) else : full_file_name = print_file_path self . set_param ( ms_ctx_param . print_file_path , full_file_name )