<
http://video.google.com/videoplay?docid=-8502904076440714866>
Dick Moores
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
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
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')
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
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
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
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
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/
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
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
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
11 matches
Mail list logo