0

I have created a fork of the module gym which is also called gym. For clarity, I will refer to original gym as gym_original and the gym fork as gym_fork.

gym_original is already installed on the system (I'm working on Google Colab) and I cannot remove it. Whenever I use gym, I want it to point to gym_fork, not gym_original. I am able to do this on the current file that I'm working on by using import fork_location.gym as gym. But there are other files within gym_fork which also use import gym. In this case, import gym points to gym_original.

What can I do to make any code which uses import gym to point to gym_fork?


I unfortunately cannot uninstall gym_original since it is on google colab. I also cannot rename my fork because there are hundreds of calls to import gym within it.

Confuse
  • 5,646
  • 7
  • 36
  • 58

0 Answers0