I have problem. Most of the code I built and their libraries are supported by py3.6 and I have some old code in py 2.7. The older code has lot of dependencies which rely on py 2.7 to function properly. Exporting the code to py 3.6 is the solution but due to time constraints we are avoiding that.
Can I make a function call from code running in Py 3.6 virtual env to the code running in Py 2.7 virtual env. It executes the code and returns the response back.
# Py 3.6 virtual env
def foo(some_var):
# Make call to Code in Py 2.7 Virtual env
def get_response_from_bar():
# ....processing.....
return response
get_response_from_bar()