mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-27 14:39:56 -07:00
Stardew valley: Fix package and imports for apworld linux (#1842)
- Fix csv load to use explicitly imported self package instead of keyword __package__ - Fix init.py having a relative import to outside of the apworld
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import List
|
||||
|
||||
from .. import data
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SeedItem:
|
||||
@@ -23,7 +25,7 @@ def load_crop_csv():
|
||||
except ImportError:
|
||||
from importlib_resources import files # noqa
|
||||
|
||||
with files(__package__).joinpath("crops.csv").open() as file:
|
||||
with files(data).joinpath("crops.csv").open() as file:
|
||||
reader = csv.DictReader(file)
|
||||
crops = []
|
||||
seeds = []
|
||||
|
||||
Reference in New Issue
Block a user