mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 19:28:07 -06:00
Use patch.object
to allow relative imports
Issue STAR-322.
This commit is contained in:
parent
b51317b4f3
commit
badb0b0ca9
4 changed files with 19 additions and 16 deletions
|
@ -29,6 +29,7 @@ def where(exe_name: str, search_path: str = os.getenv("PATH")) -> str:
|
|||
|
||||
|
||||
def findModules(path):
|
||||
return ["UM3NetworkPrinting"]
|
||||
result = []
|
||||
for entry in os.scandir(path):
|
||||
if entry.is_dir() and os.path.exists(os.path.join(path, entry.name, "__init__.py")):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue