Changeset 479


Ignore:
Timestamp:
Dec 19, 2011, 12:04:29 AM (13 years ago)
Author:
aslmd
Message:

previous commit, oops. forget something. also warn the user not to forget double quotes.

Location:
trunk/UTIL/PYTHON
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/myscript.py

    r478 r479  
    22
    33    ### I/O
    4     parser.add_option('-f', '--file',   action='append',dest='file',     type="string",  default=None,  help='[NEEDED] filename. Append: different figures. Comma-separated: same figure (+ possible --operation). Multiple files: use e.g. -f "foo*" or any UNIX regex')
     4    parser.add_option('-f', '--file',   action='append',dest='file',     type="string",  default=None,  help='[NEEDED] filename. Append: different figures. Comma-separated: same figure (+ possible --operation). Regex OK: use -f "foo*" DONT FORGET QUOTES "" !!!!')
    55    parser.add_option('-t', '--target', action='store',dest='tgt',       type="string",  default=None,  help='destination folder')
    66    parser.add_option('-S', '--save',   action='store',dest='save',      type="string",  default="gui", help='save mode (gui,png,eps,svg,pdf,txt,html,avi) [gui]')
  • trunk/UTIL/PYTHON/pp.py

    r478 r479  
    4141    #############################
    4242    ### Catch multiple files
    43     if "*" in opt.file[0] or "?" in opt.file[0]: yeah = glob.glob(opt.file[0]) ; yeah.sort()
    44     opt.file[0] = yeah[0]
    45     for file in yeah: opt.file[0] = opt.file[0] + "," + file
     43    if "*" in opt.file[0] or "?" in opt.file[0]:
     44        yeah = glob.glob(opt.file[0]) ; yeah.sort()
     45        opt.file[0] = yeah[0]
     46        for file in yeah: opt.file[0] = opt.file[0] + "," + file
    4647
    4748    #############################
Note: See TracChangeset for help on using the changeset viewer.