Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r committed Nov 26, 2024
1 parent 48761ab commit 2a60a21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions empire/server/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def __getitem__(self, key):


class DirectoriesConfig(EmpireBaseModel):
downloads: Path
module_source: Path
obfuscated_module_source: Path
downloads: Path = Path("empire/server/downloads")
module_source: Path = Path("empire/server/modules")
obfuscated_module_source: Path = Path("empire/server/data/obfuscated_module_source")


class LoggingConfig(EmpireBaseModel):
Expand Down Expand Up @@ -141,7 +141,6 @@ def set_yaml(location: str):
log.warning(exc)


# Load config from file or use defaults
config_dict = EmpireConfig().model_dump()
if "--config" in sys.argv:
location = sys.argv[sys.argv.index("--config") + 1]
Expand Down

0 comments on commit 2a60a21

Please sign in to comment.