This is my file structure:
.
โโโ data
โ โโโ config.json
โ โโโ data.json
โโโ internal
โ โโโ __pycache__
โ โ โโโ __init__.cpython-312.pyc
โ โ โโโ logger.cpython-312.pyc
โ โ โโโ paths.cpython-312.pyc
โ โโโ __init__.py
โ โโโ logger.py
โ โโโ paths.py
โโโ server
โ โโโ extras
โ โ โโโ new_captcha.html
โ โโโ __init__.py
โ โโโ client.py
โ โโโ reload.py
โโโ start-server.py
The problem I am facing is while using this:
# This is start-server.py
import subprocess
import threading
from internal.paths import SERVER_RELOAD
print(SERVER_RELOAD)
def start(port):
subprocess.Popen(['python', SERVER_RELOAD, port])
ports = ['1337']
for port in ports:
threading.Thread(target=start, args=(port)).start()
And in ./server/reload.py
I import it like this.
from internal.logger import MainLogger
( importing it to server/reload.py )
Which says internal module not found.
When i try to import it this way:
from ..internal.logger import MainLogger
It says this
from ..logger import MainLogger
ImportError: attempted relative import with no known parent package
When this:
from ..internal.logger import MainLogger
I get this:
File "C:\Users\halfstackpgr\Discord Nitro Generator\server\reload.py", line 1, in <module>
from ..internal.logger import MainLogger
How can I help myself with this ?
let me try
dw thats just the name lol