Permalink
Browse files

fix generate.py to provide a main-method for build_dist.py

  • Loading branch information...
1 parent 453fadd commit 6d6324819366733934396f127935ce1c26078b97 @jussimalinen jussimalinen committed May 4, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 doc/generate.py
View
@@ -3,6 +3,12 @@
try:
from robot.libdoc import libdoc
except:
- print """Robot Framework 2.7 or later required for generating documentation"""
+ def main():
+ print """Robot Framework 2.7 or later required for generating documentation"""
else:
- libdoc(join(dirname(__file__),'..','src','Selenium2Library'), join(dirname(__file__),'Selenium2Library.html'))
+ def main():
+ libdoc(join(dirname(__file__),'..','src','Selenium2Library'), join(dirname(__file__),'Selenium2Library.html'))
+
+
+if __name__ == '__main__':
+ main()

0 comments on commit 6d63248

Please sign in to comment.