No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Hi, I am having python 2.4 on linux machine. I am using exec funcation as: objconfigfile=open(path, 'r') for line in objconfigfile.readlines() if line == None: continue exec(line) It is throwing exception as: invalid syntax for "exec(line)" Please let me know the issue, do we have exec function in python 2.4? … | |
Hi, I have an application which writes some data to a file (csv). Now there is python script which is to be invoked once the application writes to the file. The application cannot generate any indication of completion of the process. I thought of opening that csv file and handling … | |
Hi, I am using this zipfile.Zipfile module to zip around 600 MB of data. But after zipping, the size of the zipped folder is app. same. file = zipfile.ZipFile(yesterday_date_time + ".zip","w") os.chdir(rawFileLocation) dirList = os.listdir(rawFileLocation) for fnames in dirList: file.write(fnames) file.close() If i try to use compression method as ZIP_DEFLATED, … | |
Hi, We need to zip files having '2009' in their names from a particular directory. How can we do the same. Code: file = zipfile.ZipFile("test.zip", "w") os.chdir(rawFileLocation) dirList = os.listdir(rawFileLocation) for fnames in dirList: file.write(fnames) file.close() It is zipping all the files. Please tell me the logic for adding files … |
The End.