Replace execfile() usage per python 3

This commit is contained in:
Lance Edgar 2018-02-15 10:01:46 -06:00
parent ed2448698a
commit 043c81adf5

View file

@ -1,9 +1,8 @@
#!/usr/bin/env python # -*- coding: utf-8; -*-
# -*- coding: utf-8 -*-
################################################################################ ################################################################################
# #
# sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL
# Copyright © 2013 Sacramento Natural Foods Co-op, Inc # Copyright © 2013-2018 Sacramento Natural Foods Co-op, Inc
# #
# This file is part of sqlalchemy-pervasive. # This file is part of sqlalchemy-pervasive.
# #
@ -22,13 +21,14 @@
# #
################################################################################ ################################################################################
from __future__ import unicode_literals, absolute_import
import os.path import os.path
from setuptools import setup, find_packages from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__)) here = os.path.abspath(os.path.dirname(__file__))
execfile(os.path.join(here, 'sqlalchemy_pervasive', '_version.py')) exec(open(os.path.join(here, 'sqlalchemy_pervasive', '_version.py')).read())
README = open(os.path.join(here, 'README.rst')).read() README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()