mqtt-io icon indicating copy to clipboard operation
mqtt-io copied to clipboard

How to run when outside project directory?

Open codeclinic opened this issue 2 years ago • 3 comments

Hi,

How can we run this script from outside the project directory?

I really need to run this automatically at boot via crontab, but I can't figure out the correct command to get this to run unless I'm directly inside the project directory.

No matter what I try it just outputs the following: /python3: No module named mqtt_io

Thanks.

codeclinic avatar Jan 22 '23 20:01 codeclinic

Please provide more information in your paths. What ist outside? Are you using virtualenv? Would supervisor be a solution for you?

BenjiU avatar Jan 22 '23 21:01 BenjiU

I'm not using venv or supervisor. Just cloned the project to a local directory and then run the project as described in the readme.

If I navigate to any other directory/folder I am unable to run the script.

codeclinic avatar Jan 22 '23 23:01 codeclinic

Hi @codeclinic,

if this is still relevant, please post your command lines.

BenjiU avatar Jul 21 '23 19:07 BenjiU