Re: noob question How do I run a Python script.
- From: Bruno Desthuilliers <bdesth.quelquechose@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Jun 2007 21:55:13 +0200
CarlP a écrit :
How do I run a Python script.
usually, it's:
$ python /path/to/somescript.py arg1 argN
on a command line prompt.
I have one that gmail loader needs to
run on my email box. Here's the script
http://www.marklyon.org/gmail/cleanmbox.py
I can't seem to find what I need to run it. I installed python, run
the interpreter and the script , but all it will do is say invalid
syntax.
Am I right if I guess you did something like :
bruno@bibi ~ $ python
Python 2.4.3 (#1, Mar 12 2007, 23:32:01)
[GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> cleanmbox.py testmbox
File "<stdin>", line 1
cleanmbox.py testmbox
^
SyntaxError: invalid syntax
>>>
?-)
FWIW, I ran the script (the correct way) on a copy of a mozilla mbox dir, and it seemed to work.
.
- References:
- noob question How do I run a Python script.
- From: CarlP
- noob question How do I run a Python script.
- Prev by Date: Re: PEP 3107 and stronger typing (note: probably a newbie question)
- Next by Date: Re: win32event.WaitForInputIdle() returns too soon
- Previous by thread: Re: noob question How do I run a Python script.
- Next by thread: Memory leak in PyQt application
- Index(es):
Relevant Pages
|