tree
systemMonitoring
├── ddos_logging_service.py
├── __init__.py
├── setup.py
├── systemMonitor
│ ├── __init__.py
│ ├── monitor.py
│ └── source.py
└── systemMonitor.service
Its my python program file hierarchy...
I created systemMonitor directory on my python program to seperate setup.py and service file from others. After separation,when I try to run monitor.py I'm getting this error:
File "monitor.py", line 3, in <module>
from systemMonitor import source
ImportError: No module named 'systemMonitor'
begining monitor.py is:
#!/usr/bin/python3
import time,psutil
from systemMonitor import source