Skip to content

Commit ba99e6f

Browse files
Restrict package usage to Windows OS only
1 parent 1b94d4d commit ba99e6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyCTools/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
from pyCTools.hwrng import MaxRNG
22
from pyCTools.processInspect import ProcessMetrics
3+
4+
import os
5+
if os.name != 'nt':
6+
raise OSError('This package only supports Windows OS.')

0 commit comments

Comments
 (0)