fix: windows compat (using os.sep in paths)

This commit is contained in:
Seaswimmer 2023-08-10 17:09:17 -04:00
parent d38535a35e
commit 84b11bf28b
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -18,7 +18,7 @@ class ExportChannels(commands.Cog):
def export(self, ctx, channel, token): def export(self, ctx, channel, token):
self.data_path = data_manager.cog_data_path(self) self.data_path = data_manager.cog_data_path(self)
self.bundled_data_path = data_manager.bundled_data_path(self) self.bundled_data_path = data_manager.bundled_data_path(self)
out = f'{self.data_path}/Exported Channels' out = f'{self.data_path}{os.sep}Exported Channels'
try: try:
os.mkdir(out) os.mkdir(out)
except FileExistsError: except FileExistsError: