I am creating a pyspark application which is modular in nature. My code struture is like:

```
├── main.py
├── src
│   ├── __init__.py
│   ├── jobs
│   │   ├── __init__.py
│   │   └── logic.py
│   └── utils
│       ├── __init__.py
│       └── utility.py

```

My start script is `main.py` which in turn call logic function in the `logic.py` file.

I am running my project like `spark-submit main.py`

My question is do i need to mention other `.py` files in the spark-submit command or they automaticlly get imported.

I come accross a post which mention to zip the src folder and pass it as argument in --py-files.

Which is the right way?

Should i keep the current structure and run code from main.py like i do.?

Is there any difference in these two ways? (logical and performance wise)