mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Fix imports for all namespace packages (#2506)
* Fix imports as they're namespace packages * Fix import for scripts/validate_filenames.py * Fix path in doctest
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
|
||||
from build_directory_md import good_file_paths
|
||||
try:
|
||||
from .build_directory_md import good_file_paths
|
||||
except ImportError:
|
||||
from build_directory_md import good_file_paths
|
||||
|
||||
filepaths = list(good_file_paths())
|
||||
assert filepaths, "good_file_paths() failed!"
|
||||
|
Reference in New Issue
Block a user