Commit b3b786a7 authored by Léo's avatar Léo 🤷🏽
Browse files

Correctif pour la détection de Settings sous Windows

parent cae8ecb2
......@@ -39,3 +39,7 @@ class SettingsEventHandler(FileSystemEventHandler):
settings = json.load(file)
self.wakfu_rpc.profile_url = 'https://account.ankama.com/fr/profil-ankama/' + \
settings['USER_INFO']['nickname']
def dispatch(self, event):
if not event.is_directory and event.src_path.endswith('Settings'):
super(SettingsEventHandler, self).dispatch(event)
......@@ -22,7 +22,7 @@ if __name__ == '__main__':
if config.PROFILE_URL is None:
settings_event_handler = SettingsEventHandler(wakfu_rpc)
observer.schedule(settings_event_handler, os.path.join(paths.zaap_dir(), 'Settings'))
observer.schedule(settings_event_handler, paths.zaap_dir())
else:
wakfu_rpc.profile_url = config.PROFILE_URL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment