0

I have a signal within an app on my project and i need to import it in an app I've downloaded which is stored with in site-packages. Is this possible?

myproject / 
  src /
    signals.py
  myprojectenv /
    lib / 
      python3.6 /
        site-packages /
           allauth /
             accounts /
               view.py      

I want to bring a signal from src.signals into accounts.view

Mint
  • 1,013
  • 1
  • 12
  • 29

1 Answers1

0

I found the answer here.

import sys
sys.path.insert(0, "/path/to/your/package_or_module")
Mint
  • 1,013
  • 1
  • 12
  • 29