Skip to content

Commit

Permalink
Removed test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexeh committed Dec 21, 2023
1 parent 0906346 commit 76e0cb3
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions joystick_diagrams/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ def get_log_level():
window = MainWindow()
window.show()

from dynaconf.loaders.json_loader import write

write("settings.json", {"username": "poo"})

write(
"D:\\Git Repos\\joystick-diagrams\\joystick_diagrams\\plugins\\plugin1\\settings.json",
{"username": "potato"},
)

# Load Plugins
plugins = initialise_plugins()

Expand All @@ -84,14 +75,6 @@ def get_log_level():

apply_stylesheet(app, theme="dark_lightgreen.xml")

for plugin in plugins.loaded_plugins:
plugin.set_path(Path(""))
_logger.info({plugin.version})
write(
Path(plugin.settings.path_for()).joinpath("settings.json"),
{"username": "IM CHANGING PLUGIN VARIABLE"},
)

app.exec()
except Exception as error: # pylint: disable=broad-except
_logger.exception(error)

0 comments on commit 76e0cb3

Please sign in to comment.