diff --git a/exemple.py b/exemple.py index eb6eca3..5f48be5 100644 --- a/exemple.py +++ b/exemple.py @@ -1,4 +1,4 @@ -import raspberrypi # import package for raspberrypi controlling over ssh +import raspberrypi_control # import package for raspberrypi controlling over ssh import os # Put import here they are take and install to the raspberrypi file. import time diff --git a/main.py b/main.py index 951095f..3b854aa 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ -import raspberrypi # import package for raspberrypi controlling over ssh +import raspberrypi_control # import package for raspberrypi controlling over ssh import os # Put import here they are take and install to the raspberrypi file. import time diff --git a/pyproject.toml b/pyproject.toml index 4ae17c2..9b17ef2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "raspberrypi_control" -version = "2.0.1" +version = "2.0.2" authors = [ { name="Geoloup Team", email="franckiebbb@gmail.com"}, ] diff --git a/raspberrypi_control/raspberrypi.py b/raspberrypi_control/raspberrypi.py index 9204fb3..4267c99 100644 --- a/raspberrypi_control/raspberrypi.py +++ b/raspberrypi_control/raspberrypi.py @@ -1446,7 +1446,7 @@ def run_command(command=None,display=False): capture=True ) return output[-1] - else: + except: import os return os.system(command) else: