Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added shutting down calls to the visualization server #241

Merged
merged 13 commits into from
Jun 18, 2015
Merged
Prev Previous commit
Next Next commit
Fixed minor syntax error in server.py
  • Loading branch information
sahilshekhawat committed Jun 17, 2015
commit f77b84affcb6188669b2e749834349212c34b0f0
2 changes: 1 addition & 1 deletion pydy/viz/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Server(object):

"""
def __init__(self, scene_file, directory=None, port=None):
if scene_file
if scene_file:
self.scene_file = scene_file

if directory:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comparisons to singletons like None should always be done with is or is not:
if directory is not None

Expand Down