[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3506] trunk/py/scripts/tools/bi_farm/ slideshow: headers for slideshow scripts
Campbell Barton
ideasman42 at gmail.com
Tue Jun 19 13:59:00 CEST 2012
Revision: 3506
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3506
Author: campbellbarton
Date: 2012-06-19 11:58:54 +0000 (Tue, 19 Jun 2012)
Log Message:
-----------
headers for slideshow scripts
Modified Paths:
--------------
trunk/py/scripts/tools/bi_farm/slideshow/blender_exr_to_png.py
trunk/py/scripts/tools/bi_farm/slideshow/preview_images_update.py
Modified: trunk/py/scripts/tools/bi_farm/slideshow/blender_exr_to_png.py
===================================================================
--- trunk/py/scripts/tools/bi_farm/slideshow/blender_exr_to_png.py 2012-06-19 07:49:39 UTC (rev 3505)
+++ trunk/py/scripts/tools/bi_farm/slideshow/blender_exr_to_png.py 2012-06-19 11:58:54 UTC (rev 3506)
@@ -1,4 +1,27 @@
+#!/shared/software/python/bin/python3.2
+# ##### BEGIN GPL LICENSE BLOCK #####
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ##### END GPL LICENSE BLOCK #####
+
+# <pep8-80 compliant>
+
+# XXX - this is not used!, check for removal!
+
import bpy
import sys
import os.path
Modified: trunk/py/scripts/tools/bi_farm/slideshow/preview_images_update.py
===================================================================
--- trunk/py/scripts/tools/bi_farm/slideshow/preview_images_update.py 2012-06-19 07:49:39 UTC (rev 3505)
+++ trunk/py/scripts/tools/bi_farm/slideshow/preview_images_update.py 2012-06-19 11:58:54 UTC (rev 3506)
@@ -1,5 +1,31 @@
#!/shared/software/python/bin/python3.2
+# ##### BEGIN GPL LICENSE BLOCK #####
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ##### END GPL LICENSE BLOCK #####
+
+# <pep8-80 compliant>
+
+# This script is not essential for the running of the farm
+# since it only gives preview images used by the web front end.
+#
+# Keep this script running in its own shell.
+# it loops and sends conversion commands.
+
import os
import time
@@ -21,7 +47,7 @@
exr_files = []
for root, dirs, files in os.walk(DIR):
- if root.find("rrd") == -1:
+ if "rrd" in root: # XXX - weak, we could have rrd in a path name FIXME
print(root)
for file in files:
@@ -53,6 +79,5 @@
remote_command(command)
# sleep a while until the next up
- print("sleeping for", str(SLEEP/60.0), "minutes")
+ print("sleeping for", str(SLEEP / 60), "minutes")
time.sleep(SLEEP)
-
More information about the Bf-extensions-cvs
mailing list