Search
New Code
AnyGantt JS Gantt Charts 8.0.0
Hex Comparison 5.12
SecureBridge 8.1
Hotelline PMS 1.0
TeeBI for RAD Studio Suite 2017
AnyStock Stock and Financial JS Charts 8.0.0
Entrepreneur News Portal 1.0.2
Advanced MLM Software 1.2
JavaScript Pop-up Box - free scripts 1.0
wolfSSL 3.12.0
Bytescout PDF SDK 1.6.0.207
Fundraiser by NCrypted Websites 1.0
Bytescout PDF To HTML SDK 8.6.0.2911
iTech StockPhoto Script 2.03
AnyMap JS Maps 8.0.0
Top Code
Jango Clone Script 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Sine Wave Using JavaFX 1.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
Code Listing by Andrew Yurisich

Code 1-4 of 4   






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...