We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5fc34c commit 171b9a4Copy full SHA for 171b9a4
pyencrypt/loader.py
@@ -26,7 +26,7 @@ def __init__(self, path) -> None:
26
self.__private_key = ''
27
self.__cipher_key = ''
28
29
- def get_filename(self, fullname: str) -> _Path:
+ def get_filename(self, fullname: str) -> str:
30
return self.path
31
32
def get_data(self, path: _Path) -> bytes:
@@ -51,7 +51,8 @@ def find_spec(self,
51
else:
52
file_path = Path(path[0]) / f'{fullname.rsplit(".",1)[-1]}.pye'
53
54
- file_path = f'{fullname}.pye'
+ file_path = Path(f'{fullname}.pye')
55
+ file_path = file_path.absolute().as_posix()
56
if not os.path.exists(file_path):
57
return None
58
loader = EncryptFileLoader(file_path)
0 commit comments