[Tutor] What is the easiest way to ensure the current working directory is the same as the directory where the main program is saved?
boB Stepp
robertvstepp at gmail.com
Sat Jul 3 13:40:40 EDT 2021
On Sat, Jul 3, 2021 at 3:32 AM Alan Gauld via Tutor <tutor at python.org> wrote:
>
> On 02/07/2021 01:02, boB Stepp wrote:
>
> > One thing that is mildly troubling is that if I wish to write
> > cross-platform applications then I must go to the bother of detecting
> > the user's OS and stashing "data" appropriately for that OS. But that
> > should not normally be too troublesome.
[...]
> When you add the possibility of the user having a config that
> over-rides the OS default too, it gets even more messy.
> It is a non-trivial exercise.
I said, "...But that should not normally be too troublesome." I am
now a troubled man with a worried mind! ~(:>))
boB Stepp
More information about the Tutor
mailing list