[Tutor] Video of recent talk by Guido van Rossum

2006-12-11 Thread Dick Moores
< http://video.google.com/videoplay?docid=-8502904076440714866> Dick Moores ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Getting the directory the program is in

2006-12-11 Thread Tor Hildrum
On 12/11/06, Jordan Greenberg <[EMAIL PROTECTED]> wrote: > Tor Hildrum wrote: > > The full pathname is in sys.argv[0] > At least on my system, it only includes the filename if executed from > the current directory. Hm, yeah, I thought the full path was standard behavior but I see it's not. I need

Re: [Tutor] Getting the directory the program is in

2006-12-11 Thread Christopher Arndt
Christopher Arndt schrieb: > Of course you have to do this before you (or some other code in your program) > do anything siilar to os.chris('/somewhere/else'). ^ That was some freudian slip of my narcissistic mind *LOL* Of course, I mean: os.chdir('/somewhere/else')

Re: [Tutor] Getting the directory the program is in

2006-12-11 Thread Christopher Arndt
Jordan Greenberg schrieb: > Slightly hackish and nasty, but seems to do the trick. Someone'll > probably suggest a better way, this is just the first thing I could come > up with: No, IMHO it's perfectly normal and safe practice, though this gets the full path name of the program. If you want the

Re: [Tutor] Getting the directory the program is in

2006-12-11 Thread Jordan Greenberg
Tor Hildrum wrote: > The full pathname is in sys.argv[0] At least on my system, it only includes the filename if executed from the current directory. Example: [EMAIL PROTECTED]:/$ cd ~ [EMAIL PROTECTED]:~$ cat > test.py from sys import argv print argv[0] [EMAIL PROTECTED]:~$ python test.py test.p

Re: [Tutor] Getting the directory the program is in

2006-12-11 Thread Jordan Greenberg
Toon Pieton wrote: > Hey friedly users! > > I was wondering: how can I get the directory the program is in? For example > "C:\Python Programs\Calculator\". > > Thanks in advance for reading, > Toon Pieton > Slightly hackish and nasty, but seems to do the trick. Someone'll probably suggest a bet

Re: [Tutor] Getting the directory the program is in

2006-12-11 Thread Tor Hildrum
On 12/11/06, Toon Pieton <[EMAIL PROTECTED]> wrote: > Hey friedly users! > > I was wondering: how can I get the directory the program is in? For example > "C:\Python Programs\Calculator\". >>> os.path.split.__doc__ 'Split a pathname. Returns tuple "(head, tail)" where "tail" is\n everything after

[Tutor] Getting the directory the program is in

2006-12-11 Thread Toon Pieton
Hey friedly users! I was wondering: how can I get the directory the program is in? For example "C:\Python Programs\Calculator\". Thanks in advance for reading, Toon Pieton ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/

Re: [Tutor] pyExcelerator and Graphs

2006-12-11 Thread Kent Johnson
Toon Pieton wrote: > Hey friendly users, > > I have been using pyExcelerator for a short period now, and I'm very > satisfied with the results. There is one thing that I just can't do > thought, and that is making graphs. I want to add a column (horizontal) > type graph. Does anybody know how t

[Tutor] pyExcelerator and Graphs

2006-12-11 Thread Toon Pieton
Hey friendly users, I have been using pyExcelerator for a short period now, and I'm very satisfied with the results. There is one thing that I just can't do thought, and that is making graphs. I want to add a column (horizontal) type graph. Does anybody know how this can be achieved? Thanks in a

Re: [Tutor] help

2006-12-11 Thread Tor Hildrum
On 12/9/06, Kamran Haider <[EMAIL PROTECTED]> wrote: > > Hi > > I have got some python related queries. I am working on an MRes project > which involves a bit of programing in python. Actually, I am using a > python program developed by someone, which gives pairwise genetic > distances between a se