We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b278e3 commit 89bab6dCopy full SHA for 89bab6d
shiny/_docstring.py
@@ -154,17 +154,17 @@ def _(func: F) -> F:
154
155
other_files: list[str] = []
156
for abs_f in Path(example_dir).glob("**/*"):
157
- path_parts = Path(abs_f).parts
158
rel_f = abs_f.relative_to(example_dir)
159
- f = os.path.basename(abs_f)
+ path_parts = Path(rel_f).parts
+ f = os.path.basename(rel_f)
160
is_support_file = (
161
os.path.isfile(abs_f)
162
and f != app_file_name
163
and f != "app.py"
164
and f != ".DS_Store"
165
and "venv" not in path_parts
166
and ".venv" not in path_parts
167
- and not f.startswith("app-")
+ and not (f.startswith("app-") and f.endswith(".py"))
168
and not str(rel_f).startswith("__")
169
)
170
if is_support_file:
0 commit comments