Subject: Re: mega.ini default location
From: Ondřej Jirman
Date: Sun, 16 Jun 2019 12:43:46 +0200
Hi,

On Sat, Jun 15, 2019 at 08:06:24PM -0700, Gary Cattelino wrote:
> So, I just found megatools and I think it's brilliant!  I'm using windows,
> and I put the megatools-1.10.2-win64 directory in my path, but I noticed
> that mega.ini must be in my current directory for it to be recognized.
> Windows has a home environment variable called HOMEPATH, and it would be
> really nice if megatools looked for mega.ini using the HOMEPATH environment
> variable on windows. Is there a setting I'm missing on windows that will
> properly location the mega.ini file?

megatools check for existence of these locations in order to determine fallback
directory that it will check, before trying the current dir:

- HOME
- USERPROFILE
- SHGetSpecialFolderLocation(CSIDL_PROFILE)

  https://docs.microsoft.com/en-us/windows/desktop/shell/csidl

regards,
	o.

>  
> 
> Thank-you.
> 
>  
>