Skip to content

Commit eb990c7

Browse files
committed
[scripts/odmlview] Make script python 3 specific
1 parent afd60bd commit eb990c7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

odml/scripts/odml_view.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
--version Show version
1717
"""
1818

19-
import http.server as hs
19+
import os
20+
try:
21+
import http.server as hs
22+
except ImportError:
23+
print("This script is only supported with Python 3")
24+
exit(-1)
25+
2026
import socketserver
2127
import sys
2228
import urllib.request as urllib2

0 commit comments

Comments
 (0)