bitcraze / crazyflie-clients-python

Host applications and library for Crazyflie written in Python.
Other
307 stars 471 forks source link

Config file folder does not exist on windows #618

Open knmcguire opened 2 years ago

knmcguire commented 2 years ago

The cfclient has a logblogs tab that can also save logging data on the go. This seem to fail on windows.

OS: Windows 11 Cfclient: latest master

How to recreate: 1- Connect to the crazyflie with the cfclient, start the logblock tab, and start logging of one of the logging variables: 2- The terminal says: INFO:cfclient.utils.logdatawriter:Started logging of block [sensors/magnetometer] to file [C:\Users...\AppData\Local\Bitcraze\cfclient\logdata\20220708T11-45-56\sensors-magnetometer-20220708T11-45-59.csv] or something similar. 3- If you go to that file, the folder doesn't exist.

Also the menu option 'go to config folder' does not seem to work either

knmcguire commented 1 year ago

So we have done some research, and apparently, this happens when python is installed from the Windows Store, which is apparently in a different folder: C:\Users\USERNAME\AppData\Local\Packages\PYTHONVERSION\LocalCache\Local\Bitcraze\cfclient

https://stackoverflow.com/questions/15098751/where-does-windows-store-apps-stores-its-local-settings

This was very unclear as the Appdata module still opens the regular one: C:\Users\USERNAME\AppData\Local\Bitcraze\cfclient\ and it still does so for the config.

No clear solution for this but we should warn people with the installation instructions