Skip to content

Commit

Permalink
Added platform (i.e. OS) information to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Jan 22, 2019
1 parent 359026b commit 785a6cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sciunit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from git.cmd import Git

PYTHON_MAJOR_VERSION = sys.version_info.major
PLATFORM = sys.platform

if PYTHON_MAJOR_VERSION < 3: # Python 2
from StringIO import StringIO
Expand Down
3 changes: 2 additions & 1 deletion sciunit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

import sciunit
from sciunit.errors import Error
from .base import SciUnit, FileNotFoundError, tkinter, PYTHON_MAJOR_VERSION
from .base import SciUnit, FileNotFoundError, tkinter
from .base import PLATFORM, PYTHON_MAJOR_VERSION
try:
import unittest.mock
mock = True
Expand Down

0 comments on commit 785a6cb

Please sign in to comment.