Skip to content

Commit 14ea8ca

Browse files
committed
Debug print content of namespace pth file.
1 parent b152052 commit 14ea8ca

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

res/pyinstaller/create_application.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ def _create_plugin_ns_pth_file(plugin_dir, site_packages_dir):
3030
if not matching_files:
3131
pth_file = os.path.join(site_packages_dir, f'{dir_name}-nspkg.pth')
3232
with open(pth_file, 'w') as fh:
33-
fh.write(NS_IMPORT_INFRASTRUCTURE.format(plugin_path=Path(plugin_dir)))
33+
fh.write(NS_IMPORT_INFRASTRUCTURE.format(plugin_path=plugin_dir))
3434

35+
print(f'========= {dir_name} ========')
36+
with open(pth_file, 'r') as fh:
37+
print(fh.read())
3538

3639
def _create_egg_info_directory(plugin_dir):
3740
listing = os.listdir(os.path.join(plugin_dir, 'mapclientplugins'))

0 commit comments

Comments
 (0)