import eps from read only folder
Bug #512681 reported by
tatankam
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When I import an eps file from a readonly folder I obtain :
I have windows XP.
have a folder "pippo" where I have read permission.
If I choose File->Import and I select an eps file from that folder I obtain:
"Access is denied.
Access is denied.
Access is denied.
Access is denied.
Unable to open command line file _.at"
because it isn't able to create .at file.
The problem is because ps2pdf use that temporary directory.
If I modify run_command.py adding the line:
os.chdir(
after the line
msg = None
and it solves the problem as suggested by "sas"
http://
Thanks.
Related branches
tags: | added: eps extensions-plugins importing |
Changed in inkscape: | |
importance: | Undecided → Medium |
milestone: | none → 0.48 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here's a patch.
The problem was that (in Windows, at least) ps2pdf tries to write a temporary file to the current directory, which may not be writeable. The fix is to (attempt to) change directory to the temp directory before running the command.
This patch also includes some minor changes to reflect the fact that the file that run_command.py produces can be a PDF file (whereas it was originally only used to produce SVG files).
I've only tested this patch on Windows XP, so it would be useful if someone could test on OS X or Linux (opening or importing .ps or .eps files, or other formats such as .fig and .cdr that use this script).