As workspace has changed, locations also should be updated If the user already has set a location, do not alter it
()
| 105 | |
| 106 | |
| 107 | def 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 | |
| 123 | def get_home_path(): |
no test coverage detected