Skip to content

Commit

Permalink
Add: simple Python source-code checking using pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
licheng committed Oct 4, 2010
1 parent 042a37c commit 4f2286a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion judge_client/script/compile.sh
Expand Up @@ -48,7 +48,7 @@ case $1 in
;;
python)
echo >> $src
exit 0
pyflakes $src 1>&2
;;
perl)
exit 0
Expand Down
2 changes: 1 addition & 1 deletion judge_client/script/start.sh
Expand Up @@ -53,7 +53,7 @@ if [[ "`which java`" != "" && "`which javac`" != "" ]]; then
supported_source_file_types=$supported_source_file_types,javac
fi

if [ "`which python`" != "" ]; then
if [ "`which python`" != "" && "`which pyflakes`" != "" ]; then
supported_source_file_types=$supported_source_file_types,python
fi

Expand Down

0 comments on commit 4f2286a

Please sign in to comment.