[Checkins] SVN: hurry.tinymce/trunk/src/hurry/tinymce/prepare.py Adapt to new package structure in tinyMCE 3.2.3.

Uli Fouquet uli at gnufix.de
Fri May 1 07:58:26 EDT 2009


Log message for revision 99635:
  Adapt to new package structure in tinyMCE 3.2.3.

Changed:
  U   hurry.tinymce/trunk/src/hurry/tinymce/prepare.py

-=-
Modified: hurry.tinymce/trunk/src/hurry/tinymce/prepare.py
===================================================================
--- hurry.tinymce/trunk/src/hurry/tinymce/prepare.py	2009-04-30 23:35:38 UTC (rev 99634)
+++ hurry.tinymce/trunk/src/hurry/tinymce/prepare.py	2009-05-01 11:58:25 UTC (rev 99635)
@@ -20,6 +20,10 @@
     def copy_tinymce(ex_path):
         """Copy to location 'tinymce-build' in package."""
         build_path = os.path.join(ex_path, 'tinymce', 'jscripts', 'tiny_mce')
+        if not os.path.exists(build_path):
+            # Some versions of tinyMCE are packaged without a
+            # top-level ``tinymce`` directory.
+            build_path = os.path.join(ex_path, 'jscripts', 'tiny_mce')
         shutil.copytree(build_path, dest_path)
 
     download(version, copy_tinymce)



More information about the Checkins mailing list