From 8a93f4ba1399e6a0ce38781df173cec914c3c1d0 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sat, 16 Feb 2019 21:58:24 +0200 Subject: [PATCH] Try to fix issue#100. site module is not present. --- pysollib/util.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pysollib/util.py b/pysollib/util.py index f0c53581..8c669f43 100644 --- a/pysollib/util.py +++ b/pysollib/util.py @@ -23,7 +23,13 @@ # imports import os -import site +try: + import site +except Exception: + class Dummy: + def __init__(self): + self.PREFIXES = [] + site = Dummy() import sys # PySol imports