Skip to content

Commit

Permalink
Use /usr/bin/env python over /usr/bin/python
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Aug 25, 2015
1 parent d1e22d8 commit d3a7046
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion benchmark.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of the python-chess library.
Expand Down
10 changes: 5 additions & 5 deletions perft.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# A test set of more than 6000 positions. The perft node count for a given depth
# is the number of legal move sequences from that position. This can be used
# to check correctness and speed of the legal move generator.
# Run a test set of more than 6000 positions. The perft node count for a given
# depth is the number of legal move sequences from that position. This can be
# used to check correctness and speed of the legal move generator.
#
# The original test suite was created by Marcel van Kervinck and found at
# The original test suite was created by Marcel van Kervinck and found at:
# http://marcelk.net/rookie/nostalgia/v3/perft-random.epd

from __future__ import print_function
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of the python-chess library.
Expand All @@ -23,6 +23,7 @@
import setuptools
import sys


def read_description():
"""
Reads the description from README.rst and substitutes mentions of the
Expand All @@ -47,6 +48,7 @@ def read_description():

return description


def dependencies():
deps = []

Expand All @@ -55,6 +57,7 @@ def dependencies():

return deps


setuptools.setup(
name="python-chess",
version=chess.__version__,
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of the python-chess library.
Expand Down

0 comments on commit d3a7046

Please sign in to comment.