Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
697d9340
Commit
697d9340
authored
Aug 21, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dream_run script
parent
67392c79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
dream/platform/__init__.py
dream/platform/__init__.py
+0
-9
setup.py
setup.py
+0
-1
No files found.
dream/platform/__init__.py
View file @
697d9340
...
...
@@ -207,14 +207,5 @@ def main(*args):
# start the server
app
.
run
(
debug
=
True
,
host
=
arguments
.
host
,
port
=
arguments
.
port
)
def
run
(
*
args
):
# run with one topology input
args
=
args
or
sys
.
argv
[
1
:]
input_data
=
json
.
load
(
open
(
args
[
0
]))
queue
=
multiprocessing
.
Queue
()
_runSimulation
(
input_data
,
queue
)
output_data
=
queue
.
get
()
print
json
.
dumps
(
output_data
,
indent
=
True
)
if
__name__
==
"__main__"
:
main
()
setup.py
View file @
697d9340
...
...
@@ -22,7 +22,6 @@ setup(
[console_scripts]
dream_platform=dream.platform:main
dream_simulation=dream.simulation.LineGenerationJSON:main
dream_run=dream.platform:run
"""
),
include_package_data
=
True
,
zip_safe
=
False
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment