Skip to content
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

[BUG] RetopoFlow tries to write in the addon folder, it forbids studio deploy #1308

Open
3 tasks
alainxi opened this issue Mar 14, 2024 · 0 comments
Open
3 tasks

Comments

@alainxi
Copy link

alainxi commented Mar 14, 2024

PLEASE READ THE FOLLOWING AND USE THE TEMPLATE TO POST YOUR ISSUE

Questions not directly related to the RetopoFlow project are considered general and should be posted elsewhere (e.g. git, blender, python, etc).

Before raising the issue, please check the following first:

  • Read through the README.md file in the branch used to assure the process taken is correct
  • Check the existing issues and pull requests to make sure the issue has not already been reported and/or fixed.
  • You can replicate the bug and will provide as much info as possible with blend files, screenshots, logfiles, as well as show the expected result and actual result.

 

Issue Template


Please prefix your issue name with one of the following: [BUG] [PROPOSAL] [QUESTION]

Retopoflow Version: 3.4.3

Blender Version/Hash: 4.0.2

Platform Version/Distribution: Windows.

 

Issue:

Most studios install addons on a central shared server, to avoid having to install all addons to each and every computer.
For security reasons, our addons filer server is readonly.
But Retopoflow, tries to write its temporary or config files to the addon directory, which is read-only, so it fails, and prevents the addon to work.

It would be a lot better to write on the usually advised data directory (which is C:\Users[UserLogin]\AppData\Roaming\Blender Foundation\Blender\4.0\datafiles...... ).
Blender even provides a way to automatically get the path :
bpy.utils.user_resource("DATAFILES", path=yourSubDir, create=False)
Doc : https://docs.blender.org/api/current/bpy.utils.html#bpy.utils.user_resource

 

Here is our current workaround :

Completely disable the updater (we don't want the users to start an update themselves, anyway, as it's the admin job).

In RetopoFlow\config\options.py , replace this :
Options.fndb = get_path_from_addon_root(retopoflow_files['options filename'])
by this :
Options.fndb = bpy.utils.user_resource("DATAFILES", path=retopoflow_files['options filename'], create=False)

In RetopoFlow\config\options.py , replace this :
return get_path_from_addon_root(retopoflow_files[key])
by this :
return bpy.utils.user_resource("DATAFILES", path=retopoflow_files[key], create=False)

@alainxi alainxi changed the title [BUG] [BUG] RetopoFlow tries to write in the addon folder, it forbids studio deploy Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant