From babb743096c7cd63b3bdd7fb29ddaed227ab06b0 Mon Sep 17 00:00:00 2001 From: hakril Date: Wed, 7 Mar 2018 10:28:39 +0100 Subject: [PATCH] check we are on windows --- windows/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/windows/__init__.py b/windows/__init__.py index 6919af6..5c60545 100644 --- a/windows/__init__.py +++ b/windows/__init__.py @@ -1,5 +1,5 @@ """ -Windows for Python +Python for Windows A lot of python object to help navigate windows stuff Exported: @@ -11,6 +11,10 @@ Exported: current_thread : :class:`windows.winobject.CurrentThread` """ +# check we are on windows +import sys +if sys.platform != "win32": + raise NotImplementedError("It's called PythonForWindows not PythonFor{0}".format(sys.platform.capitalize())) from windows import winproxy from windows import winobject