Trying to link subdirectories in heroku

pull/1/head
sgoudham 5 years ago
parent 55a99ce0d5
commit 14e052876b

@ -1,7 +1,7 @@
import asyncio import asyncio
import datetime import datetime
import random import random
from pathlib import PurePath from pathlib import PureWindowsPath
import discord import discord
from discord.ext import commands from discord.ext import commands
@ -108,7 +108,7 @@ class Fun(commands.Cog):
if str(ctx.channel) in channels: if str(ctx.channel) in channels:
# path = PurePath('Ensobot', 'kissing.txt') # path = PurePath('Ensobot', 'kissing.txt')
path = PurePath('C:', 'Users', 'sgoud', 'PycharmProjects', 'EnsoBot', 'images', 'kissing.txt') path = PureWindowsPath(r'C:', 'Users', 'sgoud' 'PycharmProjects', 'EnsoBot', 'images', 'kissing.txt')
with open(str(path)) as file: with open(str(path)) as file:
kissing_array = file.readlines() kissing_array = file.readlines()

Loading…
Cancel
Save