diff options
author | Unrud <unrud@outlook.com> | 2022-04-18 23:44:35 +0200 |
---|---|---|
committer | Unrud <unrud@outlook.com> | 2022-04-18 23:44:35 +0200 |
commit | f9bad34931e61cf49904c5df49f7af8db0fb6178 (patch) | |
tree | a668229748481967864e4aa162ca74218a518009 | |
parent | Add option for InfCloud configuration (diff) | |
download | radicaleinfcloud-f9bad34931e61cf49904c5df49f7af8db0fb6178.tar.gz radicaleinfcloud-f9bad34931e61cf49904c5df49f7af8db0fb6178.tar.bz2 radicaleinfcloud-f9bad34931e61cf49904c5df49f7af8db0fb6178.zip |
Search web_data independent of working directory
-rwxr-xr-x | setup.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -6,11 +6,11 @@ from setuptools import setup VERSION = "3.1.1" -os.chdir("radicale_infcloud") -web_data = sum(([os.path.join(root, f) for f in files - if not f.startswith(".") and not f.endswith("~")] - for root, _, files in os.walk("web")), []) -os.chdir(os.pardir) +package_path = os.path.join(os.path.dirname(__file__), "radicale_infcloud") +web_data = sum(( + [os.path.relpath(os.path.join(root, f), package_path) + for f in files if not f.startswith(".") and not f.endswith("~")] + for root, _, files in os.walk(os.path.join(package_path, "web"))), []) setup( name="Radicale_InfCloud", |