Modify

Ticket #126 (new task)

Opened 5 years ago

Last modified 44 years ago

how to do INI-file-like substitution in pyYAML

Reported by: jim.vickroy@… Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:
Cc:

Description

Here is a an INI file section using string substitution to define root folder and UNC path:

[DEFAULT]
host         : sec-swds-dw.swpc.noaa.gov
satellite id : 13
root folder  : GOES%(satellite id)sSXI
UNC path     : \\%(host)s\%(root folder)s

I have been experimenting with !!python/object/apply:builtin.eval to define root folder and UNC path, but so far, I have been unsuccessful.

How can this be done in pyYAML?

Thanks

Attachments

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.