fix pythonpath setting

the directory is in sys.path for setup_win10 but not for postproc
scripts
This commit is contained in:
Filip Stedronsky 2021-07-29 18:37:21 +02:00
parent 30f8c29fc4
commit 1c70d2e859
1 changed files with 2 additions and 3 deletions

View File

@ -14,9 +14,8 @@ import parted
from ntfs_acl import *
my_dir = Path(__file__).parent
if str(my_dir) not in sys.path:
# allow postprocess scripts to import our python modules, especially ntfs_acl
os.environ['PYTHONPATH'] = f"{my_dir}:{os.environ.get('PYTHONPATH','')}"
# allow postprocess scripts to import our python modules, especially ntfs_acl
os.environ['PYTHONPATH'] = f"{my_dir}:{os.environ.get('PYTHONPATH','')}"
def is_part(pth):
pth = Path(pth)