From: Ben Finney
Robert Latest via Python-list writes:
> Because the main.py script needs to import the tables.py module from
> backend, I put this at the top if main.py:
>
>sys.path.append('../..')
>import jobwatch.backend.tables as tables
>
> My question is: Is this the way it should
Ben Finney wrote:
> Robert Latest via Python-list writes:
>
>> Because the main.py script needs to import the tables.py module from
>> backend, I put this at the top if main.py:
>>
>>sys.path.append('../..')
>>import jobwatch.backend.tables as tables
>>
>> My question is: Is this the way i
From: Robert Latest
Hello,
I'm building an application which consists of two largely distinct parts, a
frontend and a backend. The directory layout is like this:
|-- jobwatch
| |-- backend
| | |-- backend.py
| | |-- __init__.py
| | `-- tables.py
| |-- frontend
| | |-- __init
Robert Latest via Python-list writes:
> Because the main.py script needs to import the tables.py module from
> backend, I put this at the top if main.py:
>
>sys.path.append('../..')
>import jobwatch.backend.tables as tables
>
> My question is: Is this the way it should be done? It looks f
Hello,
I'm building an application which consists of two largely distinct
parts, a frontend and a backend. The directory layout is like this:
|-- jobwatch
| |-- backend
| | |-- backend.py
| | |-- __init__.py
| | `-- tables.py
| |-- frontend
| | |-- __init__.py
| | |-- main