Skip to content

Commit

Permalink
Dynamically name plugin based on directory name
Browse files Browse the repository at this point in the history
  • Loading branch information
CMDR-WDX committed Dec 6, 2022
1 parent dbb937f commit ed80a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions load.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import os
import tkinter
from typing import Optional
from os.path import basename, dirname

from massacre.mission_aggregation_helper import get_missions_for_all_cmdrs
import massacre.massacre_mission_state

from massacre.ui import ui
from massacre.logger_factory import logger
Expand Down Expand Up @@ -43,7 +43,7 @@ def notify_ui_on_outdated(is_outdated: bool):
set_new_repo(mission_uuid_to_mission_lookup)

logger.info("Awaiting CMDR Name to start building Mission Index")
return "massacre"
return basename(dirname(__file__))


def journal_entry(cmdr: str, _is_beta: bool, _system: str,
Expand Down

0 comments on commit ed80a6a

Please sign in to comment.