[rtems-tools commit] rtemstoolkit/host: Make the load() public.
Chris Johns
chrisj at rtems.org
Tue Jun 11 23:52:08 UTC 2019
Module: rtems-tools
Branch: master
Commit: 9b153bc20fa5d0df40eee06f0700e20bd4ccec84
Changeset: http://git.rtems.org/rtems-tools/commit/?id=9b153bc20fa5d0df40eee06f0700e20bd4ccec84
Author: Chris Johns <chrisj at rtems.org>
Date: Thu May 30 20:22:28 2019 +1000
rtemstoolkit/host: Make the load() public.
---
rtemstoolkit/host.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/rtemstoolkit/host.py b/rtemstoolkit/host.py
index 5319c92..01aae07 100644
--- a/rtemstoolkit/host.py
+++ b/rtemstoolkit/host.py
@@ -42,7 +42,7 @@ is_windows = False
platform = None
name = None
-def _load():
+def load():
global is_windows
global platform
@@ -83,11 +83,11 @@ def _load():
raise error.general('failed to load %s host support' % (name))
def cpus():
- _load()
+ load()
return platform.cpus()
def overrides():
- _load()
+ load()
return platform.overrides()
def label(mode = 'all'):
@@ -107,7 +107,7 @@ def label(mode = 'all'):
if __name__ == '__main__':
import pprint
print('Python\'s OS name: %s' % (os.name))
- _load()
+ load()
print('Name : %s' % (name))
if is_windows:
status = 'Yes'
More information about the vc
mailing list