INNER CODE UNIT · Python
profileDir
wodsuz/EasyApplyJobsBot · utils.py:38
profileDir = normalized_path[last_sep_index + 1:]
else:
# If no separator found, treat entire path as profile directory
# and use parent directory as user-data-dir
initialPath = os.path.dirname(normalized_path)
profileDir = os.path.basename(normalized_path)
options.add_argument('--user-data-dir=' + initialPath)
options.add_argument("--profile-directory=" + profileDir)
else:
options.add_argument("--incognito")
return options
def prRed(prt: str) -> None:
print(f"\033[91m{prt}\033[00m")
def prGreen(prt: str) -> None:
print(f"\033[92m{prt}\033[00m")