i have the same issue :-( You are talking about this? *pyi-makespec --paths=/path/to/thisdir \ --paths=/path/to/otherdir myscript.py *
Can you tell me where i have added above? During building exe file? Could you please provide full command? I will be grateful wtorek, 23 lutego 2021 o 09:43:45 UTC+1 [email protected] napisaĆ(a): > 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/02b8c5df-15a9-44c0-bd86-bf373bcd4719n%40googlegroups.com.
