[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
Sun Jul 18 20:22:15 EDT 2021
On Fri, Jul 2, 2021 at 12:55 PM Mats Wichmann <mats at wichmann.us> wrote:
>
> On July 2, 2021 10:59:20 AM MDT, Mats Wichmann <mats at wichmann.us> wrote:
> >On July 2, 2021 10:06:02 AM MDT, Dennis Lee Bieber
> ><wlfraed at ix.netcom.com> wrote:
> >>On Thu, 1 Jul 2021 19:02:14 -0500, boB Stepp <robertvstepp at gmail.com>
> >>declaimed the following:
> >>
> >>>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.
> >
> >Take a look at the applies package on pypi for some help with this.
>
> Appdirs. Sorry, autocorrect got it.
My son ran across platformdirs, a fork of appdirs, at
https://github.com/platformdirs/platformdirs
boB Stepp
More information about the Tutor
mailing list