added encoding "# coding: utf-8" to the headers of scripts that python would not run with execfile('....'), python would also riase the error, though there is no practicle use

for running these scripts outside blender.

The error looked like this.
SyntaxError: Non-ASCII character '\xe4' in file ./3ds_export.py on line 10, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
This commit is contained in:
2008-05-11 12:41:12 +00:00
parent 50bbc0ff23
commit b9c66e88ea
8 changed files with 16 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
#!BPY #!BPY
# coding: utf-8
""" """
Name: '3D Studio (.3ds)...' Name: '3D Studio (.3ds)...'
Blender: 243 Blender: 243

View File

@@ -1,5 +1,5 @@
#!BPY #!BPY
# coding: utf-8
""" Registration info for Blender menus """ Registration info for Blender menus
Name: 'Bevel Center' Name: 'Bevel Center'
Blender: 243 Blender: 243

View File

@@ -1,5 +1,5 @@
#!BPY #!BPY
# coding: utf-8
""" """
Name: 'BlenderLipSynchro' Name: 'BlenderLipSynchro'
Blender: 242 Blender: 242

View File

@@ -1,4 +1,5 @@
#!BPY #!BPY
# coding: utf-8
""" Registration info for Blender menus: """ Registration info for Blender menus:
Name: 'M3G (.m3g, .java)...' Name: 'M3G (.m3g, .java)...'
Blender: 244 Blender: 244
@@ -3069,4 +3070,5 @@ def file_callback_m3g(filename):
Window.RedrawAll() Window.RedrawAll()
if __name__ == '__main__': if __name__ == '__main__':
gui() gui()

View File

@@ -1,5 +1,5 @@
#!BPY #!BPY
# coding: utf-8
""" Registration info for Blender menus: """ Registration info for Blender menus:
Name: 'HotKey and MouseAction Reference' Name: 'HotKey and MouseAction Reference'
Blender: 242 Blender: 242
@@ -918,4 +918,4 @@ def bevent(evt):
Blender.Window.Redraw() Blender.Window.Redraw()
if __name__ == '__main__': if __name__ == '__main__':
Register(draw, event, bevent) Register(draw, event, bevent)

View File

@@ -1,5 +1,5 @@
#!BPY #!BPY
# coding: utf-8
""" """
Name: 'Autodesk DXF (.dxf)' Name: 'Autodesk DXF (.dxf)'
Blender: 244 Blender: 244
@@ -5942,4 +5942,5 @@ if 1:
main(_dxf) main(_dxf)
print 'TOTAL TIME: %.6f' % (Blender.sys.time() - TIME) print 'TOTAL TIME: %.6f' % (Blender.sys.time() - TIME)
""" """

View File

@@ -1,5 +1,5 @@
#!BPY #!BPY
# coding: utf-8
""" """
Name: 'Paths (.svg, .ps, .eps, .ai, Gimp)' Name: 'Paths (.svg, .ps, .eps, .ai, Gimp)'
Blender: 233 Blender: 233
@@ -92,4 +92,5 @@ elif argv=='Gimp_2_0':
fonctionSELECT = functionSELECT # can they all be called function? fonctionSELECT = functionSELECT # can they all be called function?
text = 'Import %s' % argv text = 'Import %s' % argv
Blender.Window.FileSelector (fonctionSELECT, text) Blender.Window.FileSelector (fonctionSELECT, text)

View File

@@ -1,5 +1,5 @@
#!BPY #!BPY
# coding: utf-8
""" Registration info for Blender menus: <- these words are ignored """ Registration info for Blender menus: <- these words are ignored
Name: 'Deformed mesh to Rvk' Name: 'Deformed mesh to Rvk'
Blender: 243 Blender: 243
@@ -270,4 +270,4 @@ def deform2rvk():
EDITMODE=Blender.Window.EditMode() EDITMODE=Blender.Window.EditMode()
Blender.Window.EditMode(0) Blender.Window.EditMode(0)
deform2rvk() deform2rvk()
Blender.Window.EditMode(EDITMODE) Blender.Window.EditMode(EDITMODE)