MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / validate_database_address

Function validate_database_address

instapy/database_engine.py:132–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131
132def validate_database_address():
133 address = Settings.database_location
134 if not address.endswith(".db"):
135 slash = "\\" if "\\" in address else "/"
136 address = address if address.endswith(slash) else address + slash
137 address += "instapy.db"
138 Settings.database_location = address
139 verify_database_directories(address)
140 return address
141
142
143def get_profile(name, address, logger):

Callers 1

get_databaseFunction · 0.85

Calls 1

Tested by

no test coverage detected