Skip to content

Commit

Permalink
Keep import meltingpot.python working.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 550584032
Change-Id: Id019bb236d8b07bdf2bd48951bf042839cef77c2
  • Loading branch information
jagapiou authored and Copybara-Service committed Jul 24, 2023
1 parent 2387615 commit a95129b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions meltingpot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
# limitations under the License.
"""Melting Pot."""

import sys

from meltingpot import bot
from meltingpot import scenario
from meltingpot import substrate

try:
# Keep `import meltingpot.python` working for external meltingpot.
# TODO: b/292470900 - Remove in v3.0
sys.modules['meltingpot.python'] = sys.modules['meltingpot']
except KeyError:
pass # Internal version of meltingpot.

0 comments on commit a95129b

Please sign in to comment.