rgalyeon / Scroll_V2

Software for convenient work in the Scroll chain.
28 stars 10 forks source link

import not found #2

Open vvsuperman opened 3 months ago

vvsuperman commented 3 months ago

in all the module , util can not import, it shoud add .. infront of utils

import aiohttp from loguru import logger

from ..config import NFT_ORIGINS_CONTRACT, NFT_ORIGINS_ABI from ..utils.gas_checker import check_gas from ..utils.helpers import retry from .account import Account

class NftOrigins(Account):

rgalyeon commented 3 months ago

It depends on how you run the code. If you run the code from the project root folder, you don't need "..". Go to the project folder and run main.py. If you run it in pycharm, check the script startup settings.

vvsuperman commented 3 months ago

yeah, I integrated with django then put the code in one module, then the problem appeared. is there any method to avoid the whole change of the source code?