|Code Listing by Andrew Yurisich|
Add all dirs under folder to sys.path if any .py files are found.
Use an abspath if you'd rather do it that way.
Uses the current working directory as the location of using.py.
Keep in mind that os.walk goes all the way down the directory tree.
Splits a large text file into smaller ones, based on line count. Original file is unmodified.
Resulting text files are stored in the same directory as the original file.
Useful for breaking up text based logs or blocks of...
Hopefully this function will save you the trip to oocalc/excel. Py3k code.
Useful if you need to replace many different characters with all of the same character. Can accept an unlimited number of request to replace.
Does not work with words, only characters. You can, however, replace single characters with...