Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wiedemann
MOOC-Workbench
Commits
b750d7fe
Commit
b750d7fe
authored
Jun 21, 2019
by
Jonathan Wiedemann
Browse files
fix
#21
parent
a8a7d4b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
InitGui.py
View file @
b750d7fe
...
...
@@ -77,9 +77,7 @@ class MoocWorkbench ( Workbench ):
'''Check version of workbench'''
print
(
u
'Check workbench version...'
)
import
urllib.request
import
ssl
gcontext
=
ssl
.
SSLContext
()
# Only for gangstars
webUrl
=
urllib
.
request
.
urlopen
(
'https://framagit.org/freecad-france/mooc-workbench/raw/master/InitGui.py'
,
context
=
gcontext
)
webUrl
=
urllib
.
request
.
urlopen
(
'http://framagit.org/freecad-france/mooc-workbench/raw/master/InitGui.py'
)
for
line
in
webUrl
:
if
'MOOC_VERSION = '
in
str
(
line
,
'utf-8'
):
mooc_version
=
str
(
line
,
'utf-8'
).
split
(
' = '
)
...
...
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