Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
markusgrotz committed Feb 10, 2024
1 parent f43d897 commit 8fafe1f
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions aurmr_setup/core/config.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
from dataclasses import dataclass
import os


@dataclass
class SystemConfig:
WORKSPACE_DIR = "~/workspaces/"

WORKSPACE_PATH = "~/workspaces/"
ACTIVE_WORKSPACE = "~/.active_workspace"
ARCHIVE_DIR = "archive"
ENVIRONMENT_FILE = "environment.yml"
ARCHIVE_DIRNAME = "archive"
ENVIRONMENT_FILENAME = "environment.yml"


@property
def archive_path(self):
return os.path.join(self.workspace_path, self.ARCHIVE_DIRNAME)

@property
def workspace_path(self):
return os.path.expanduser(self.WORKSPACE_PATH)


@property
def active_workspace_file(self):
return os.path.expanduser(self.ACTIVE_WORKSPACE)


system_config = SystemConfig()

@dataclass
class WorkspaceConfig:

workspace_name: str

rosdistro: str = "noetic"

@property
def environment_file(self) -> str:
pass
# return os.path.join(self.full_path, ENVIRONMENT_FILE)



system_config = SystemConfig()

0 comments on commit 8fafe1f

Please sign in to comment.