Le Saturday 02 August 2008 00:51:50 Clay Hobbs, vous avez écrit :
> It is also a good idea to open files with the open() function and not the
> file() function. They do the exact same thing, and take the exact same
> parameters, just open() makes your code a bit more readable (or at least
> that's
On Fri, 2008-08-01 at 13:25 -0700, Emile van Sebille wrote:
> suhail shaik wrote:
>
> > print fileName
> > file = fileName.split(".")
> .. this is a list
>
> you're shadowing a builtin -- generally a bad practice
>
> > print file
> > textfile = file[0]+".txt"
> > pr
suhail shaik wrote:
print fileName
file = fileName.split(".")
.. this is a list
you're shadowing a builtin -- generally a bad practice
print file
textfile = file[0]+".txt"
print textfile
os.chdir(PNAME)
file(textfile,'wt')
.. and this is why
hi ,
i am new to python..may be this may turn into a simple error but i am in
urgency please kindly help me
#!/usr/bin/python
#Globals here
ROOTDIR = "/vol/mmis/media/video/tvid2008/mediaVideos/test" # Root dir where
video files are located
PNAME = "/data/test_1/"
#DAILY_UPLOAD_PATH = "/mmis-ss9