Skip to content

Commit

Permalink
Remove setting.json reflecting a review
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Aug 3, 2023
1 parent 138fce8 commit 8029499
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 0 additions & 3 deletions src/src_user/Test/settings.json

This file was deleted.

10 changes: 1 addition & 9 deletions src/src_user/Test/utils/c2a_enum_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@


def get_c2a_enum():
c2a_src_abs_path = os.environ.get("C2A_SRC_ABS_PATH")

# このifは環境変数が設定されているならsettings.jsonを無視したいという意図
if c2a_src_abs_path is None:
with open(os.path.dirname(__file__).replace("\\", "/") + "/../settings.json") as f:
json_dict = json.load(f)
c2a_src_abs_path = (
os.path.dirname(__file__).replace("\\", "/") + "/../" + json_dict["c2a_src_rel_path"]
)
c2a_src_abs_path = os.path.dirname(__file__).replace("\\", "/") + "/../../.."

return c2a.load_enum(c2a_src_abs_path, "utf-8")

0 comments on commit 8029499

Please sign in to comment.