Commits

Tuk Bredsdorff committed 8072179

Made moai_helper.py support just receiving the path to the html docs folder.

Comments (0)

Files changed (1)

Support/moai_helper.py

 	VERSION = '0.1'
 	DESCRIPTION = 'Generates completions in .tmPreferences format for TextMate.'
 	
-	def main(self, filename):
-		class_names = find_classnames(filename)
+	def main(self, html_docs_dir):
+		classes_file = 'classes.html'
+		classes_path = '{0}/{1}'.format(html_docs_dir, classes_file)
+		
+		class_names = find_class_names(classes_path)
 		tmpreferences = generate_tmpreferences(class_names)
 		print tmpreferences