Skip to content

Commit 44413e5

Browse files
committed
Trying to protect against the env variable not being present
1 parent e3a19c4 commit 44413e5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@
1616

1717
version = "2.1"
1818

19-
is_rtd = os.environ['READTHEDOCS']
19+
reqs = []
20+
21+
is_rtd = False
22+
if "READTHEDOCS" in os.environ:
23+
is_rtd = os.environ['READTHEDOCS']
24+
2025
print(is_rtd)
21-
if is_rtd:
22-
reqs = []
23-
else:
26+
if not is_rtd:
2427
reqs = [
2528
"cadquery-ocp",
2629
"ezdxf",

0 commit comments

Comments
 (0)