Skip to content

Commit b152052

Browse files
committed
Use Path to handle converting to native path string format.
1 parent 2735927 commit b152052

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

res/pyinstaller/create_application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import platform
66
import site
7+
from pathlib import Path
78

89
import PySide6 as RefMod
910

@@ -29,7 +30,7 @@ def _create_plugin_ns_pth_file(plugin_dir, site_packages_dir):
2930
if not matching_files:
3031
pth_file = os.path.join(site_packages_dir, f'{dir_name}-nspkg.pth')
3132
with open(pth_file, 'w') as fh:
32-
fh.write(NS_IMPORT_INFRASTRUCTURE.format(plugin_path=plugin_dir))
33+
fh.write(NS_IMPORT_INFRASTRUCTURE.format(plugin_path=Path(plugin_dir)))
3334

3435

3536
def _create_egg_info_directory(plugin_dir):

0 commit comments

Comments
 (0)