Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92620
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Is there a utility to tally function calls from other files? |
| Date | 2015-06-14 12:12 -0400 |
| Organization | IISS Elusive Unicorn |
| References | <557C800A.6010107@cdreimer.com> <CAPTjJmqLOZKs8vzxsWfECK5ynmebAOXwq8rJkisUsFgyFQT2Fw@mail.gmail.com> <557C8A47.8080608@cdreimer.com> <CAPTjJmozy+5Kua_ex3B4St+CfvD_7vVn3egNxJNzVXS3uWps-w@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.479.1434298348.13271.python-list@python.org> (permalink) |
On Sun, 14 Jun 2015 05:58:28 +1000, Chris Angelico <rosuav@gmail.com>
declaimed the following:
>
>Hmm, I think the Windows 'find' command can do the same sort of job.
>Though it's not hard to grab a Windows port of grep and use that.
>Should be easier than writing your own script.
>
If not "find", it should be possible to run something up in Windows
PowerShell
-=-=-=-=-=-=-=-=-
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\Users\Wulfraed\Documents> Get-ChildItem -Path c:\users\wulfraed
-Include *.py -Recurse | Select-String -Pattern import
C:\users\wulfraed\AppData\Local\Temp\bak\CSV_DB.py:3:import sqlite3
C:\users\wulfraed\AppData\Local\Temp\bak\CSV_DB.py:4:import csv
C:\users\wulfraed\AppData\Local\Temp\bak\CSV_DB.py:5:import os
C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:32:# Set the
use_series_auto_increment_tweak_when_importing tweak to True to
C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:33:# use the above
values when importing/adding books. If this tweak is set to
C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:35:# explicitly set to
during the import. If set to True, then the
C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:37:# Note that the
use_series_auto_increment_tweak_when_importing tweak is used
C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:38:# only when a value
is not provided during import. If the importing regular
C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:40:# from books and the
import plugin produces a value, than that value will
C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:43:use_series_auto_increment_tweak_when_importing
= False
-=-=-=-=-=-=-=-
(Pity I don't use PowerShell enough to be fluent -- I keep having to look
up that simple sequence, much less the more powerful features)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Is there a utility to tally function calls from other files? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-06-14 12:12 -0400
csiph-web