Skip to content

Commit 0af2db8

Browse files
authored
Merge branch 'master' into mh-fix-406
2 parents 27c9995 + 9b68290 commit 0af2db8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import pathlib
1615
import functools
1716
import operator
17+
import pathlib
18+
import runpy
1819

1920
from setuptools import find_packages, setup
2021

21-
__version__ = ''
22-
exec(open('recirq/_version.py').read())
22+
__version__ = runpy.run_path('recirq/_version.py')['__version__']
2323
assert __version__, 'Version string cannot be empty'
2424

2525
description = (

0 commit comments

Comments
 (0)