Skip to content
Snippets Groups Projects
Commit aaecbff7 authored by Campbell Barton's avatar Campbell Barton
Browse files

minor change to platform checks

parent 19bebf23
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ def path_relative_to_export(p):
p = filesystem_path(p)
ep = os.path.dirname(export_path)
if os.sys.platform == 'win32':
if os.sys.platform[:3] == "win":
# Prevent an error whereby python thinks C: and c: are different drives
if p[1] == ':': p = p[0].lower() + p[1:]
if ep[1] == ':': ep = ep[0].lower() + ep[1:]
......
......@@ -25,13 +25,6 @@ import sys
import time
from math import atan, pi, degrees, sqrt
import platform as pltfrm
if pltfrm.architecture()[0] == "64bit":
bitness = 64
else:
bitness = 32
##############################SF###########################
##############find image texture
......@@ -1635,8 +1628,14 @@ class PovrayRender(bpy.types.RenderEngine):
for newArg in scene.pov_command_line_switches.split(" "):
extra_args.append(newArg)
if sys.platform == "win32":
if sys.platform[:3] == "win":
import winreg
import platform as pltfrm
if pltfrm.architecture()[0] == "64bit":
bitness = 64
else:
bitness = 32
regKey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, "Software\\POV-Ray\\v3.7\\Windows")
#64 bits blender
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment