Skip to content

Commit

Permalink
More package data troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 21, 2023
1 parent 24e9921 commit 4ce9221
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def get_requirements(requirements_filename: str):


def find_resource_files():
resource_base_dirs = ("neon_diana_utils/docker",
"neon_diana_utils/templates")
base_path = path.join(BASE_PATH, "neon_diana_utils")
resource_base_dirs = ("docker", "templates")
package_data = []
for res in resource_base_dirs:
if path.isdir(path.join(BASE_PATH, res)):
for (directory, _, files) in walk(path.join(BASE_PATH, res)):
if path.isdir(path.join(base_path, res)):
for (directory, _, files) in walk(path.join(base_path, res)):
if files:
package_data.append(
path.join(directory.replace(BASE_PATH, "").lstrip('/'),
path.join(directory.replace(base_path, "").lstrip('/'),
'*'))
return package_data

Expand Down

0 comments on commit 4ce9221

Please sign in to comment.