Permalink
Browse files

Updated grizwald endpoint

  • Loading branch information...
1 parent 7b0cc54 commit 2cbfaac9ed4fe77a69595d660881ddbb63ead956 @mattbasta mattbasta committed Aug 15, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 griz.py
View
@@ -1,4 +1,8 @@
import sys
-from validator.validate import validate
+from appvalidator import validate_app, validate_packaged_app
-print validate(sys.argv[1], format="json")
+path = sys.argv[1]
+if path.endswith(".webapp"):
+ print validate_app(path, format="json")
+else:
+ print validate_packaged_app(path, format="json")

0 comments on commit 2cbfaac

Please sign in to comment.