mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
15 lines
433 B
Python
15 lines
433 B
Python
import os
|
|
from typing import Union
|
|
|
|
from envutil import get_proj_dir
|
|
|
|
TEST_ARTIFACT_FOLDER = 'artifacts'
|
|
TEST_OUTPUT_FOLDER = 'output'
|
|
|
|
|
|
def get_output_path(filename: Union[str, None] = None) -> str:
|
|
if filename is None:
|
|
return os.path.join(get_proj_dir(__file__), TEST_ARTIFACT_FOLDER, TEST_OUTPUT_FOLDER)
|
|
else:
|
|
return os.path.join(get_proj_dir(__file__), TEST_ARTIFACT_FOLDER, TEST_OUTPUT_FOLDER, filename)
|