Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'For any source file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
For any source file
Authored by: schwa on May 25, '05 04:46:46PM
THe trouble with hacking a the Source Code importer to get it to index python scripts is Apple never necessarily coded the importer to handle python scripts.

It might work. It might not.

It might work with PHP because PHP is closer to C/C++/ObjC than Python is. It might just work. It might crash mdimporter every time it is run.

Notice the mights. Apple very likely did not add python to the list of support UTTypes of their source code importer because they didn't design it to work with Python. Or perhaps they did. But unless you work for Apple YOU don't know. HAcking system components like this is dumb.

And with that mini-rant out of the way ;-) I've written a Python Metadata Importer myself. This importer does more than a plain text import - it actually parses the python files and scans for function names, class names and a bunch of other metadata...

HEre's the link:

[ Reply to This | # ]