pedantic pep8 warnings, mostly white space.

This commit is contained in:
2010-07-05 22:22:22 +00:00
parent 4926667018
commit d9f86e3c73
11 changed files with 69 additions and 64 deletions

View File

@@ -435,7 +435,7 @@ class WM_OT_path_open(bpy.types.Operator):
bl_idname = "wm.path_open"
bl_label = ""
filepath = StringProperty(name="File Path", maxlen= 1024)
filepath = StringProperty(name="File Path", maxlen=1024)
def execute(self, context):
import sys
@@ -444,13 +444,13 @@ class WM_OT_path_open(bpy.types.Operator):
filepath = bpy.utils.expandpath(self.properties.filepath)
filepath = os.path.normpath(filepath)
if not os.path.exists(filepath):
self.report({'ERROR'}, "File '%s' not found" % filepath)
return {'CANCELLED'}
if sys.platform == 'win32':
subprocess.Popen(['start', filepath], shell= True)
subprocess.Popen(['start', filepath], shell=True)
elif sys.platform == 'darwin':
subprocess.Popen(['open', filepath])
else:
@@ -463,7 +463,6 @@ class WM_OT_path_open(bpy.types.Operator):
return {'FINISHED'}
class WM_OT_doc_view(bpy.types.Operator):
'''Load online reference docs'''
bl_idname = "wm.doc_view"