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:
@ -67,7 +67,7 @@ class ExportChannels(commands.Cog):
await self.config.bot_token.set({token}) await self.config.bot_token.set({token})
await ctx.send(content="Token set!") await ctx.send(content="Token set!")
await ctx.delete() await ctx.delete()
@exportset.command() @exportset.command()
@checks.is_owner() @checks.is_owner()
async def checkoutputpath(self, ctx): async def checkoutputpath(self, ctx):