Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.
This repository was archived by the owner on May 18, 2019. It is now read-only.

file writing access error #38

@MinnieTheMoocher

Description

@MinnieTheMoocher

I am running Blender 2.69 32bit on Windows 7.
I unpacked its .zip file to C:\Program Files (x86)\Blender 2.69
and can run it fine there.

I added the LDR Importer script to it and can execute it successfully.

However, I cannot import files using it.
The script seems to try to write to files below the C:\Program Files (x86) folder,
which it isn't allowed to. Here is the output Blender generates on stdout:

Traceback (most recent call last):
File "c:\Program Files (x86)\Blender 2.69\2.69\scripts\addons\import_ldraw.py", line 1083, in execute
saveInstallPath(self)
File "c:\Program Files (x86)\Blender 2.69\2.69\scripts\addons\import_ldraw.py", line 1101, in saveInstallPath
os.makedirs(config_path)
File "c:\Program Files (x86)\Blender 2.69\2.69\python\lib\os.py", line 266, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'c:\Program Files (x86)\Blender 2.69\2.69\scripts\presets\io_import_ldraw'

I think the script needs some fixing. On Windows, it should not try to write to the tool installation path. Instead, a tool's options are stored in a special folder per-user, and that is below

C:\Users\YourUserNameGoesHere\AppData\Local\LDRImporter

or

C:\Users\YourUserNameGoesHere\AppData\Local\Blender

As a workaround, I am moving my Blender installation folder outside of
C:\Program Files (x86), but that's not something I really want to do.
All my programs shall be below that.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions