On 26/04/19 11:14 AM, dieter wrote:
Arup Rakshit writes:
I am not able to call modules from lib folder in my test folder, but outside of
tests folder I can access them. How should I fix this?
Mocks$ tree .
.
├── lib
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│
Arup Rakshit writes:
> I am not able to call modules from lib folder in my test folder, but outside
> of tests folder I can access them. How should I fix this?
>
> Mocks$ tree .
> .
> ├── lib
> │ ├── __init__.py
> │ ├── __pycache__
> │ │ ├── __init__.cpython-37.pyc
> │ │ └── product.c
I am not able to call modules from lib folder in my test folder, but outside of
tests folder I can access them. How should I fix this?
Mocks$ tree .
.
├── lib
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ └── product.cpython-37.pyc
│ └── product.py
└── test
cesco wrote:
> I need to instantiate an object (my_object) whose methods I have to
> use in two files (file1.py and file2.py) which are in the same
> directory. Is it possible to instantiate such object in the
> __init__.py file and then directly use it in file1.py and file2.py?
&g
En Tue, 08 Apr 2008 17:51:21 -0300, cesco <[EMAIL PROTECTED]>
escribió:
> I need to instantiate an object (my_object) whose methods I have to
> use in two files (file1.py and file2.py) which are in the same
> directory. Is it possible to instantiate such object in the
> __
On Tuesday, Apr 8th 2008 at 16:51 -, quoth cesco:
=>Hi,
=>
=>I need to instantiate an object (my_object) whose methods I have to
=>use in two files (file1.py and file2.py) which are in the same
=>directory. Is it possible to instantiate such object in the
=>__init__.py file
Hi,
I need to instantiate an object (my_object) whose methods I have to
use in two files (file1.py and file2.py) which are in the same
directory. Is it possible to instantiate such object in the
__init__.py file and then directly use it in file1.py and file2.py?
If not, as I seem to experience