Techblog
Friday, July 13, 2012
Groovy: Parse through all xml files in a directory
def folder = <some folder path>
def baseDirectory = new File(folder)
def files = baseDirectory.listFiles().grep(~/.*xml$/)
for (file in files){
//Do something with the file
}
Tuesday, July 10, 2012
Installing setuptools for Python2.7 on Windows
Assuming you have python 2.7 installed in C:\Python27
Make sure your path includes C:\Python27\; and C:\Python27\Scripts\;
Download setuptools-0.6c11.tar.gz and setuptools-0.6c11-py2.7.egg from
here
Extract the tar using 7zip into a folder outside C:\Python27 and copy the setuptools-0.6c11-py2.7.egg file into the extracted folder
Open command prompt, get into the extracted folder and run the command: python ez_setup.py setuptool-0.6c11-py2.7.egg
You can now install modules like suds using the command
python setup.py install
Thanks to the guys at
http://stackoverflow.com/questions/309412/how-to-setup-setuptools-for-python-2-6-on-windows
http://www.jansipke.nl/python-soap-client-with-suds/
Newer Posts
Older Posts
Home
Subscribe to:
Comments (Atom)