ITP WiP
This commit is contained in:
@@ -30,6 +30,12 @@ class Config:
|
||||
default=os.getenv('SIA_ITERATIONS_DIR', 'iterations'),
|
||||
help='Path to the directory for storing iterations (default: iterations, env: SIA_ITERATIONS_DIR)'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--work-dir',
|
||||
type=Path,
|
||||
default=os.getenv('SIA_WORK_DIR', '/root'),
|
||||
help='Path to the working directory (default: /root, env: SIA_WORK_DIR)'
|
||||
)
|
||||
|
||||
# Web server configuration
|
||||
parser.add_argument(
|
||||
@@ -205,6 +211,10 @@ class Config:
|
||||
@property
|
||||
def iterations_dir(self) -> Path:
|
||||
return self.args.iterations_dir
|
||||
|
||||
@property
|
||||
def work_dir(self) -> Path:
|
||||
return self.args.work_dir
|
||||
|
||||
# Server properties
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user