having a function in a separate file

2008-10-04 Thread Maryam Saeedi
Hi all, I have a very basic question. I was wondering if I can have a function in a separate file and in my main file sort of import that function and if so are all the variables local and if I need any variables in the function I should give it as an input? I need to call a function in many diff

NoneType Error

2008-06-15 Thread Maryam Saeedi
I am using a python program on a lot of different documents and for few of them I will get NoneType error. I just want to skip those files and continue for others, I do this without a problem for IndexError,TypeError,ValueError,NameError : try: except (IndexError,TypeError,ValueError,NameErr

Re: Running a python code periodically

2008-05-08 Thread Maryam Saeedi
) and run the bash > script with nohup > > - [EMAIL PROTECTED] > > On Thu, May 8, 2008 at 9:02 AM, Maryam Saeedi <[EMAIL PROTECTED]> wrote: > >> I was wondering if you know how can I run a python code once every five >> minutes for a period of time either usin

Re: Running a python code periodically

2008-05-08 Thread Maryam Saeedi
I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. I have asked this question before and some of you answered me but I still have problem. Most of the answers was to use cron and crontab

Running a python code periodically

2008-04-08 Thread Maryam Saeedi
Hi, I was wondering if you know how can I run a python code once every five minutes for a period of time either using python or some other program like a bash script. Thanks, Maryam -- http://mail.python.org/mailman/listinfo/python-list

os.chdir

2008-03-07 Thread Maryam Saeedi
I have a problem using os.chdir on linux. What should I do if I want to change to root directory? The below does not work: os.chdir("~/dir1") Thanks -- http://mail.python.org/mailman/listinfo/python-list