how to use a local package #1520
Replies: 1 comment
-
I have find out the problem. read_app_files looks for the files to put in shiny_site/app.json using os.walk. The relevant code is: app_files: list[FileContentJson] = [] Recursively iterate over files in app directory, and collect the files intoapp_files data structure.exclude_names = {"pycache", "venv", ".venv"} The problem is that os.walk by default has the parameter followlinks=False, so it does not list my package because it was a symlink. for root, dirs, files in os.walk(appdir, topdown=True): to: for root, dirs, files in os.walk(appdir, topdown=True, followlinks=True): Best, Jose Blanca P.S. By the way, it took me a couple of hours to realize what the problem was. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm developing at the same time a python package and a shiny application that uses that should package. I know how to use a package available in pypi, but not how to use a local pacakge. In my development virtual env I have install the package with pip -e, but that would not work inside the shiny app.
Ah, I'm using shinylive.
Any help would be much appreciated.
Best,
Jose Blanca
Beta Was this translation helpful? Give feedback.
All reactions