[Checkins] SVN: Products.ExternalEditor/trunk/Products/ExternalEditor/zopeedit.py Made the script setuptools friendly

Hanno Schlichting plone at hannosch.info
Sat May 3 15:06:05 EDT 2008


Log message for revision 86274:
  Made the script setuptools friendly
  

Changed:
  U   Products.ExternalEditor/trunk/Products/ExternalEditor/zopeedit.py

-=-
Modified: Products.ExternalEditor/trunk/Products/ExternalEditor/zopeedit.py
===================================================================
--- Products.ExternalEditor/trunk/Products/ExternalEditor/zopeedit.py	2008-05-03 19:04:47 UTC (rev 86273)
+++ Products.ExternalEditor/trunk/Products/ExternalEditor/zopeedit.py	2008-05-03 19:06:04 UTC (rev 86274)
@@ -841,7 +841,7 @@
 [content-type:image/png]
 extension=.png"""
 
-if __name__ == '__main__':
+def main():
     try:
         args = sys.argv
         
@@ -867,3 +867,6 @@
         pass
     except:
         fatalError(sys.exc_info()[1])
+
+if __name__ == '__main__':
+    main()



More information about the Checkins mailing list