def upgrade_settings(self, keys):
        upgradable_keys = {
            "project_dir": "%root_dir%",
            "source_folder": "%source_folder%",
            "packages_path": "%packages_path%",
            "sep": "%sep%",
            "$": "$"
        }
        for key in keys:
            value, from_global = self.get(key, as_tuple=True)
            value = value.replace("%", "%%%")
            for k in upgradable_keys:
                value = value.replace("$" + k, upgradable_keys[k])
            self.set(key, value, to_global=from_global)
Upgrade the outdated settings
dataset/ETHPy150Open spywhere/Javatar/core/settings.py/_Settings.upgrade_settings