Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
birk
madek-broadcaster
Commits
c7e6ba73
Commit
c7e6ba73
authored
Feb 21, 2017
by
birk
Browse files
convert relative programs path into an absolute one
parent
23fae6a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
player/main.py
View file @
c7e6ba73
...
...
@@ -43,6 +43,9 @@ class Main(object):
# defining programs
self
.
_programs
=
[]
# convert relative programs path into an absolute one
programs
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
programs
)
with
open
(
programs
)
as
json_data
:
for
p
in
json
.
load
(
json_data
)[
'programs'
]:
self
.
_programs
.
append
(
Program
(
self
.
_api
,
p
))
...
...
Write
Preview
Supports
Markdown
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