Macintosh Fan
Macintosh Fan

Reputation: 405

How to import a specific .py file far into my directory

I have a file called connector.py deep in my project directory. How do I import it correctly? I'll give you my directory from my project:

/myproject/venv/lib/python3.8/site-packages/aiohttp/connector.py

I tried some steps on the internet but that would not work. Do I need to import specific libraries in order for this to work?

Upvotes: 0

Views: 19

Answers (1)

Astik Gabani
Astik Gabani

Reputation: 605

You can use below import for importing this module

from aiohttp import connector

Just make sure that you using the correct environment.

Upvotes: 2

Related Questions