-
Notifications
You must be signed in to change notification settings - Fork 316
Winpython64-3.8.2.0: \settings\ folder not used and winpython.ini is ignored #839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't see a difference in the WinPython scripts themselves. Did you root cause what may have caused this change ? |
interesting: it seems related to Python-3.8 itself WinPython-3.7.7.1 build1
WinPython-3.8.2.1 build1
|
so were up to this problem in Python-3.8 not working as dreamed:
... where is that code on github ? ah , ok : python-3.7.7.amd64\Lib\os.py |
Well, I don't truly find why under Python-3.8 , we get a different answer for
@captaindet, could you inquire this, and look for a way to get it back to beloved 3.7 behavior ? |
ok, found it. Now the variable looked for is USERPROFILE, no more HOME (at first). so if you simply tune your scripts\env.bat as follow, that should solves the issue: from
to:
|
apparently .... it's a correction of "considered bad behavior" that has been done January 28th 2020, on python-3.8.2 and 3.9.0a5 (and NOT on Python-3.7, unchanged): |
so the apparent solution is to specify USERPROFILE=%HOME% |
you can try in next build, or just apply the one-liner in your current WinPython-3.8 and 3.9 |
python-3.8 and 3.9 don't use HOME anymore to get user settings, but USERPROFILE
thanks stonebig for figuring out the root cause so fast. it seems like just adding ultimately i wanted to redirect to my folder of choice anyway, which seems to work now if winpython.ini is changed to
|
good remark |
set USERPROFILE=%HOME% makes VSCode not starting. |
on VScode side, to get ipywidgets it needs settings.json change: { } |
so... on Python-3.8 if we set USERPROFILE=%HOME% we have to pre-create:
Otherwise VScode (Electron.js) blows-up |
I don't dare setting USERPROFILE=%HOME% per default, as too much things then goes there. But the option is just for you to un-comment the line on env.bat as %WINPYDIRBASE%\settings\AppData\settings\Roaming is created, VSCode won't blow up like in electron/electron#10054 (comment) |
there is also the scripts that we may invert the names, that can be of use or reworked later:
|
The problem is when Extracting the EXE (Installers) there is no configuration files in the Is there a way to have the exact same experience with |
So the reason that happened it is because you turn on the state and the wind python initiative files (winoython.ini) don't enabled the STATE, just let as it is or you can change the user profile to winpydirbase |
as the subject indicates i have the following problems with Winpython64-3.8.2.0
a) \settings\ folder not used
all package settings (.CONFIG folders) are now stored in c:\Users\USER
this includes .ipython, .matplotlib, .spyder-py3 and others
while spyder is creating a little dummy \settings.spyder-py3, it does save all actual settings to c:\Users\USER.spyder-py3.
i like my settings being portable and want none of them in c:\Users\USER\
b) \settings\winpython.ini entries seems to be ignored too
typically, i change the defaults so that all settings/configs are stored where i have my python project located. something like:
[environment]
HOME = path-to-my-python-stuff
PYTHONPATH = path-to-my-python-stuff\lib-a;path-to-my-python-stuff\lib-b
WINPYWORKDIR = path-to-my-python-stuff\notebooks
however, this is now broken in the same way as (a), all settings end up in c:\Users\USER\ again, except for the additional dummy path-to-my-python-stuff.spyder-py3
this is with Winpython64-3.8.2.0
i am not upgrading every version. i have just upgraded from Winpython64-3.7.4.1 which did not have these issues.
The text was updated successfully, but these errors were encountered: