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

Function update_locations

instapy/file_manager.py:107–120  ·  view source on GitHub ↗

As workspace has changed, locations also should be updated If the user already has set a location, do not alter it

()

Source from the content-addressed store, hash-verified

105
106
107def update_locations():
108 """
109 As workspace has changed, locations also should be updated
110
111 If the user already has set a location, do not alter it
112 """
113
114 # update logs location
115 if not Settings.log_location:
116 Settings.log_location = localize_path("logs")
117
118 # update database location
119 if not Settings.database_location:
120 Settings.database_location = localize_path("db", "instapy.db")
121
122
123def get_home_path():

Callers 2

get_workspaceFunction · 0.85
set_workspaceFunction · 0.85

Calls 1

localize_pathFunction · 0.85

Tested by

no test coverage detected