fix: windows compat (using os.sep in paths)
This commit is contained in:
parent
d38535a35e
commit
84b11bf28b
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue