Page Menu
Home
Search
Configure Global Search
Log In
Files
F13238081
brender.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
brender.py
View Options
#!/usr/bin/env python
import
sys
import
os
from
threading
import
Thread
import
socket
import
time
import
subprocess
try
:
import
config
print
(
'[Info] Loading configuration from config.py'
)
Server
=
config
.
Server
Dashboard
=
config
.
Dashboard
Worker
=
config
.
Worker
except
ImportError
:
print
(
'[Warning] No configuration file were found! Using default config settings.'
)
print
(
'[Warning] For more info see config.py. example file or README file.'
)
Server
=
None
Dashboard
=
None
Worker
=
None
if
len
(
sys
.
argv
)
<
2
:
sys
.
exit
(
'Usage:
%s
component-name (i.e. server, dashboard or worker)'
%
sys
.
argv
[
0
])
elif
(
sys
.
argv
[
1
]
==
'worker'
):
print
'running worker'
import
worker
worker
.
run
(
Worker
)
elif
(
sys
.
argv
[
1
]
==
'dashboard'
):
print
'running dashboard'
import
dashboard
dashboard
.
run
(
Dashboard
)
elif
(
sys
.
argv
[
1
]
==
'server'
):
print
'running server'
import
server
server
.
run
(
Server
)
else
:
sys
.
exit
(
'Usage:
%s
component-name (i.e. server, dashboard or worker)'
%
sys
.
argv
[
0
])
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jul 1, 3:22 PM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
22/5f/c332f43c756d2ab179f79c2513e0
Attached To
rFM Flamenco Manager
Event Timeline
Log In to Comment