Popular recipes tagged "expansion"http://code.activestate.com/recipes/tags/expansion/2010-11-05T22:24:40-07:00ActiveState Code RecipesExtract, expand and execute command from QEditor menu file in file association (Python)
2010-11-05T22:01:40-07:00Phil Risthttp://code.activestate.com/recipes/users/4171119/http://code.activestate.com/recipes/577453-extract-expand-and-execute-command-from-qeditor-me/
<p style="color: grey">
Python
recipe 577453
by <a href="/recipes/users/4171119/">Phil Rist</a>
(<a href="/recipes/tags/command/">command</a>, <a href="/recipes/tags/expansion/">expansion</a>, <a href="/recipes/tags/macro/">macro</a>).
</p>
<p>Given a path to a primary file and a menu path, a section name and a command key,
extract a command from a QEditor menu and execute it. Useful from context menu
entries. Example use DoM.py -m {o}\menus.ini do.py * list, on my computer
searches c:\source\python\menus.ini for the first command whose key begins with
list. The command is executed without capturing its standard output.</p>
Extract, expand and execute command from file (Python)
2010-11-05T22:24:40-07:00Phil Risthttp://code.activestate.com/recipes/users/4171119/http://code.activestate.com/recipes/577454-extract-expand-and-execute-command-from-file/
<p style="color: grey">
Python
recipe 577454
by <a href="/recipes/users/4171119/">Phil Rist</a>
(<a href="/recipes/tags/command/">command</a>, <a href="/recipes/tags/expansion/">expansion</a>, <a href="/recipes/tags/macro/">macro</a>).
</p>
<p>This program extracts, expands and executes a command stored in an arbitrary file
usually the primary file. This is similar to the #! facility in UNIX. </p>