andreicozma1 / LeafNote

Repo for team 0x432d2d
1 stars 0 forks source link

Save word embeddings into Documents folder #169

Open hunterprice04 opened 3 years ago

hunterprice04 commented 3 years ago

Downloads the files into a hidden a hidden folder titled .lefdict

andreicozma1 commented 3 years ago

@hunterprice04 perhaps we can change this issue like this: Instead of saving per-workspace (which would waste space), maybe we can figure out how to save it to a persistent directory internal to PyQT? User will have option to either save externally on disk or internally with pyqt settings. Maybe QSettings has some kind of helper function for saving persistent files, not just preferences?

Please change the title of this issue according to the new implementation

hunterprice04 commented 3 years ago

@andreicozma1 I will look into the PyQT settings more when I have time to work on this issue. I will keep you updated.

andreicozma1 commented 3 years ago

@andreicozma1 I will look into the PyQT settings more when I have time to work on this issue. I will keep you updated.

Sounds good! For now just change the title to more closely resemble what we'll try to accomplish with this feature so we don't forget about it

andreicozma1 commented 3 years ago

@hunterprice04 may not be needed to save per-workspace anymore since saving it in one place is preferrable If we can figure out how to always save it to the persistent directory such as the one used for QSettings we can implement that for this issue. That way the user doesn't have to choose where to save those dictionaries

hunterprice04 commented 3 years ago

@andreicozma1 I've found this package to return the user's application data directory. Could this work? https://pypi.org/project/appdirs/

I've also found this approach to the problem as well. https://stackoverflow.com/questions/19078969/python-getting-appdata-folder-in-a-cross-platform-way

I've also seen many applications save the application data into the home directory as a hidden file.

Let me know what way you prefer and I can attempt a solution.

jisber commented 3 years ago

When I click Enable Summerizer->yes, the program doesn't crash but here is the error I am getting.

image

hunterprice04 commented 3 years ago

When I click Enable Summerizer->yes, the program doesn't crash but here is the error I am getting.

image

@jisber a quick fix to this is to simply shut down your computer, load into bios, delete your windows 10 installation, and get a better OS.