From 377552e91ffafea76acedee8cb7ada1abc202898 Mon Sep 17 00:00:00 2001 From: "Melton, Ryan" Date: Wed, 12 Feb 2020 14:59:40 -0700 Subject: [PATCH] closes #4. Fix Infinite wait with sleep time 0 --- README.rst | 2 +- ballcosmos/script/api_shared.py | 2 +- setup.py | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 7dfcc50..d163df4 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ Python support for Ball Aerospace COSMOS -================================= +======================================== This project allows accessing the COSMOS API from the python programming language. Additional functionality and support will be added over time. diff --git a/ballcosmos/script/api_shared.py b/ballcosmos/script/api_shared.py index d0a0c41..b2ecc2f 100644 --- a/ballcosmos/script/api_shared.py +++ b/ballcosmos/script/api_shared.py @@ -689,7 +689,7 @@ def wait_check_process_args(args, function_name): def cosmos_script_sleep(sleep_time = None): """sleep in a script - returns true if canceled mid sleep""" - if sleep_time: + if sleep_time != None: time.sleep(sleep_time) else: input('Infinite Wait - Press Enter to Continue: ') diff --git a/setup.py b/setup.py index c020d91..771cb02 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: - long_description = f.read() + long_description_text = f.read() setup( name='ballcosmos', @@ -23,10 +23,11 @@ # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version='0.1.1', + version='0.1.2', description='Python Support for Ball Aerospace COSMOS', - long_description=long_description, + long_description_content_type="text/x-rst", + long_description=long_description_text, # The project's main homepage. url='https://github.com/BallAerospace/python-ballcosmos',