Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
8dc8d576
Commit
8dc8d576
authored
13 years ago
by
Maurice Raybaud
Browse files
Options
Downloads
Patches
Plain Diff
Added Linux Binary detection thanks to Bela Mihalik's patch.
parent
d96d9d39
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
render_povray/render.py
+30
-3
30 additions, 3 deletions
render_povray/render.py
with
30 additions
and
3 deletions
render_povray/render.py
+
30
−
3
View file @
8dc8d576
...
@@ -1707,10 +1707,37 @@ class PovrayRender(bpy.types.RenderEngine):
...
@@ -1707,10 +1707,37 @@ class PovrayRender(bpy.types.RenderEngine):
# DH - added -d option to prevent render window popup which leads to segfault on linux
# DH - added -d option to prevent render window popup which leads to segfault on linux
extra_args
.
append
(
"
-d
"
)
extra_args
.
append
(
"
-d
"
)
# TODO, when POV-Ray isn't found this can probably still give a cryptic error on linux,
isExists
=
False
# would be nice to be able to detect if it exists
sysPathList
=
os
.
getenv
(
"
PATH
"
).
split
(
'
:
'
)
sysPathList
.
append
(
""
)
print
(
"
Command line arguments passed:
"
+
str
(
extra_args
))
for
dirName
in
sysPathList
:
if
(
os
.
path
.
exists
(
os
.
path
.
join
(
dirName
,
pov_binary
))):
isExists
=
True
break
if
not
isExists
:
print
(
"
POV-Ray 3.7: could not found execute
'
%s
'
- not if PATH
"
%
pov_binary
)
import
traceback
traceback
.
print_exc
()
print
(
"
***-DONE-***
"
)
return
False
try
:
self
.
_process
=
subprocess
.
Popen
([
pov_binary
,
self
.
_temp_file_ini
]
+
extra_args
)
except
OSError
:
# TODO, report api
print
(
"
POV-Ray 3.7: could not execute
'
%s
'"
%
pov_binary
)
import
traceback
traceback
.
print_exc
()
print
(
"
***-DONE-***
"
)
return
False
else
:
print
(
"
POV-Ray 3.7 found
"
)
print
(
"
Command line arguments passed:
"
+
str
(
extra_args
))
return
True
def
_cleanup
(
self
):
def
_cleanup
(
self
):
for
f
in
(
self
.
_temp_file_in
,
self
.
_temp_file_ini
,
self
.
_temp_file_out
):
for
f
in
(
self
.
_temp_file_in
,
self
.
_temp_file_ini
,
self
.
_temp_file_out
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment