Skip to content

Commit c10bda9

Browse files
committed
Simplify and correct tmp logic
1 parent 265f0f6 commit c10bda9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/py/kaleido/kaleido.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,7 @@ def __init__(self, *args, **kwargs): # noqa: D417 no args/kwargs in description
132132
elif page and hasattr(page, "is_file") and page.is_file():
133133
self._index = page.as_uri()
134134
else:
135-
if self.is_isolated():
136-
path = None
137-
sneak = False
138-
else:
139-
path = Path(__file__).resolve().parent / "vendor"
140-
sneak = True
141-
self.tmp_dir = TmpDirectory(path=path, sneak=sneak)
135+
self.tmp_dir = TmpDirectory(sneak=self.is_isolated())
142136
index = self.tmp_dir.path / "index.html"
143137
self._index = index.as_uri()
144138
if not page:

0 commit comments

Comments
 (0)