Re: [Tutor] What is the best way for a program suite to know where it is installed?

2018-10-23 Thread Peter Otten
eryk sun wrote: > On 10/22/18, boB Stepp wrote: >> >> Importing the various program modules/module contents is >> no issue. Where I believe I need to know the paths to things are to >> get to data folders, config files, and occasionally utility programs >> that I have written that are on my hard

Re: [Tutor] What is the best way for a program suite to know where it is installed?

2018-10-22 Thread Cameron Simpson
On 22Oct2018 19:26, boB Stepp wrote: On Mon, Oct 22, 2018 at 9:47 AM Mats Wichmann wrote: As you've concluded by now, this isn't a completely trivial exercise, and you'll possibly get asked the question "why do you think you need to know that?". Actually no one has yet asked me this question

Re: [Tutor] What is the best way for a program suite to know where it is installed?

2018-10-22 Thread eryk sun
On 10/22/18, boB Stepp wrote: > > Importing the various program modules/module contents is > no issue. Where I believe I need to know the paths to things are to > get to data folders, config files, and occasionally utility programs > that I have written that are on my hard drive, but not copied t

Re: [Tutor] What is the best way for a program suite to know where it is installed?

2018-10-22 Thread boB Stepp
On Mon, Oct 22, 2018 at 9:47 AM Mats Wichmann wrote: > > On 10/20/18 9:00 PM, boB Stepp wrote: > > So far the best method I've come up with is to make use of "__file__" > > for the initiating program file. But from past discussions I am not > > certain this is the *best* way. Is the *best* way

Re: [Tutor] What is the best way for a program suite to know where it is installed?

2018-10-22 Thread Mats Wichmann
On 10/20/18 9:00 PM, boB Stepp wrote: > I was just re-reading the entire thread at > https://www.mail-archive.com/tutor@python.org/msg77864.html > And I have asked similar questions previous to that thread. I still > do not have a satisfactory answer for the subject line's question that > both

Re: [Tutor] What is the best way for a program suite to know where it is installed?

2018-10-21 Thread Oscar Benjamin
(Resending to the list - sorry for the duplicate, Bob) On Sun, 21 Oct 2018 at 04:02, boB Stepp wrote: > > I was just re-reading the entire thread at > https://www.mail-archive.com/tutor@python.org/msg77864.html > And I have asked similar questions previous to that thread. I still > do not ha

[Tutor] What is the best way for a program suite to know where it is installed?

2018-10-20 Thread boB Stepp
I was just re-reading the entire thread at https://www.mail-archive.com/tutor@python.org/msg77864.html And I have asked similar questions previous to that thread. I still do not have a satisfactory answer for the subject line's question that both makes sense to me and seems to be good programm