Page Menu
Home
Search
Configure Global Search
Log In
Files
F13080619
brender.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
971 B
Subscribers
None
brender.py
View Options
#!/usr/bin/env python
import
sys
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
Thu, May 19, 3:39 AM (1 d, 23 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
00/ef/f67c25a2051361882927a79f24b3
Attached To
rFM Flamenco Manager
Event Timeline
Log In to Comment