-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f43d897
commit 8fafe1f
Showing
1 changed file
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |