Skip to content

Commit

Permalink
closes #4. Fix Infinite wait with sleep time 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmelt committed Feb 12, 2020
1 parent 9559df1 commit 377552e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion ballcosmos/script/api_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: ')
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@

# 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',

# 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',
Expand Down

0 comments on commit 377552e

Please sign in to comment.