pyfan.aws.general.path.detect_store_path

pyfan.aws.general.path.detect_store_path(bl_check_path_exist=True, srt_sub_path=None, st_local_path=None)[source]

Detects checks if program is running on an AWS Linux Instance

In our case, all code that run on AWS linux are running inside conda containers. If running on container, save to data folder. If running on some local machine save results to the user’s home path’s download folder, data subfolder.

Parameters
bl_check_path_existbool

checking saving path if it does not exist

srt_sub_path: `string`, optional

this is the subpath to be used, in the data folder in EC2 container, or inside the downloads data folder under user directory.

st_local_path: `string`, optional

local overriding string save path, if not, use download/data folder. This will replace the local path

Returns
tuple[bool, string]

returns boolean if on amzn splatform, then the directory where to store save files