Skip to content

Commit

Permalink
Some more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Feb 3, 2020
1 parent 43218d6 commit b222198
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ext/opentelemetry-ext-flask/tests/test_flask_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

import unittest

# FIXME Find out why 3 test cases of py37-test-ext-flask fail if I use from
# flask import Flask, request
import flask
from werkzeug.test import Client
from werkzeug.wrappers import BaseResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from distutils.spawn import find_executable
from os import environ, execl
from shutil import which
from os import execl
from os.path import dirname
from sys import argv
from sys import argv, path


def run() -> None:
environ["PYTHONPATH"] = dirname(__file__)
python3 = find_executable(argv[1])
path.insert(0, dirname(__name__))
python3 = which(argv[1])
execl(python3, python3, *argv[2:]) # type: ignore


Expand Down

0 comments on commit b222198

Please sign in to comment.