Skip to content

Commit

Permalink
FIX import protocols after sys.path is appended
Browse files Browse the repository at this point in the history
  • Loading branch information
brenting committed Mar 6, 2023
1 parent f54fd4d commit 32feecc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rice.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
import numpy as np
from gym.spaces import MultiDiscrete

_PUBLIC_REPO_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path = [_PUBLIC_REPO_DIR] + sys.path

from negotiator import (
BaseProtocol,
NoProtocol,
Expand All @@ -39,10 +42,6 @@
"BasicClubClusterProposals": BasicClubClusterProposals,
}


_PUBLIC_REPO_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path = [_PUBLIC_REPO_DIR] + sys.path

from rice_helpers import (
get_abatement_cost,
get_armington_agg,
Expand Down

0 comments on commit 32feecc

Please sign in to comment.