I have read several times the "Using pyinstaller" page before I posted the 
question. But after an overnight, the answer came to me this morning. The 
'-p DIR' option does it :). One more small step forward in understanding 
pyinstaller.
Thank you for looking.

On Monday, February 22, 2021 at 7:45:02 PM UTC+2 Yitzhak Weissman wrote:

> I am trying to import a module from within a compiled script, and can't 
> get it done. Here is the situation.
> I have a folder 'e:\Python import 'which contains a subfolder 'myscript' 
> and a script 'dummy.py'. The subfolder 'myscript' contains another script 
> 'import_lib.py'.[image: dircetories.jpg]
> The code in 'import_lib.py' is:
>
>
> *import syssys.path.append(r'e:/Python import/')import dummy*
> I want to compile 'import_lib.py' and run it from a different computer, 
> which does not have 'dummy.py', or even the folders shown above. How this 
> can be done with pyinstaller?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/49f85c68-090c-4541-a54e-1ee42f3c280bn%40googlegroups.com.

Reply via email to