Skip to content

Commit

Permalink
thread.join (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaier committed Nov 12, 2018
1 parent a335484 commit 1beb280
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions netwulf/interactive.py
Expand Up @@ -12,6 +12,7 @@
import webbrowser
import time
import threading
from copy import deepcopy

import shutil

Expand Down Expand Up @@ -165,7 +166,7 @@ def visualize(network,
```
"""

this_config = dict(default_config)
this_config = deepcopy(default_config)
if config is not None:
this_config.update(config)

Expand Down Expand Up @@ -211,15 +212,12 @@ def visualize(network,
while True:
time.sleep(2)
except KeyboardInterrupt:
# thread.join()
print('stopping server ...')
server.stop_this()
# thread.join()
thread.join()

# time.sleep(1)

print('changing directory back to', cwd)
#os.rmdir(os.path.join(web_dir, filename))

os.chdir(cwd)

Expand Down
2 changes: 1 addition & 1 deletion netwulf/metadata.py
Expand Up @@ -3,7 +3,7 @@
Contains a bunch of information about this package.
"""

__version__ = "0.0.6"
__version__ = "0.0.7"

__author__ = "Ulf Aslak, Benjamin F. Maier"
__copyright__ = "Copyright 2018, Ulf Aslak, Benjamin F. Maier"
Expand Down

0 comments on commit 1beb280

Please sign in to comment.