[Mne_analysis] mne-python config file path could not be determined...

Mads Jensen mje.mads at gmail.com
Wed May 21 14:47:27 EDT 2014
Search archives:

Hi peter,

I don't know if it's useful but you can set environment variables from 
python using the os module

import os
os.environ["HOME"] = "/desired/path"

best,
mads


On 21/05/14 20:34, Alexandre Gramfort wrote:
> hi Peter,
>
>> I'm using mne as part of a browser-based web application - it is using the
>> Django framework.
>
> sounds exciting !
>
>> Development is done using a built-in web server. Yesterday
>> I moved the application to Apache but I am getting an error (see  below).
>>
>> I can see why the error is occurring - mne utils.py is attempting to open a
>> config file that is located at $HOME/.mne/mne-python.json but $HOME doesn't
>> seem to be set in the Apache environment, hence the error.
>>
>> Has anyone had a similar experience using Apache?
>
> I doubt it.
>
> What we could do is to support an environment variable eg. MNE_CONFIG_DIR
> that defaults to $HOME but can be overwritten by the user. Would that help?
>
> out of curiosity do you plan to open this code? what is the context of
> this work?
>
> Best,
> Alex
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>



More information about the Mne_analysis mailing list