So I take back my second post - the environment PATH when using the executable is nearly the same as the environment PATH with my python script but is still missing the directory to the executable that I want.
Bryan - I tried your suggestion but this environment PATH is also missing my executable, although the rest of the environment PATH it is unchanged..strange. This may be an issue specific to me somehow - but I found a work around just by specifying specific locations where the executable is likely to be found (rather than searching the whole system, which can take a long time). On Tuesday, February 3, 2015 at 3:41:54 PM UTC-6, Bryan Jones wrote: > > Daniel, > > Are you using subprocess to locate the executable? If so, you need to > explicitly pass it an environment with your path. Here's how I call it: > > https://github.com/hlamer/enki/blob/master/enki/lib/get_console_output.py > > See line 30 in particular. > > On Tue, Feb 3, 2015 at 12:51 PM, Daniel Arteaga <[email protected] > <javascript:>> wrote: > >> The path is the same before and after pyinstaller compilation into an >> executable. I am still unsure why I cannot locate installed programs on my >> system with the executable. >> >> >> On Thursday, December 11, 2014 at 6:28:45 AM UTC-6, Hartmut Goebel wrote: >>> >>> Am 03.12.2014 um 20:12 schrieb Daniel Arteaga: >>> >>> to see if a given package exists on the user's system. However, it >>> always returns None/False when run within the pyinstaller-created >>> executable. I am assuming it is only searching within the dist folder; is >>> there a way to correct this? >>> >>> >>> I'm not aware PyInstaller is changing the PATH. Please test >>> os.environ['PATH'] in your *minimal* test-script. >>> >>> >>> -- >>> Schönen Gruß >>> Hartmut Goebel >>> Dipl.-Informatiker (univ), CISSP, CSSLP >>> Information Security Management, Security Governance, Secure Software >>> Development >>> >>> Goebel Consult, Landshut >>> http://www.goebel-consult.de >>> >>> Blog: http://www.goebel-consult.de/blog/tr-069-auf-fritzbox- >>> ausschalten-und-ergebnis-prufen >>> Kolumne: http://www.cissp-gefluester.de/2012-04-compliance-bringt- >>> keine-sicherheit >>> >>> Goebel Consult ist Mitglied bei http://www.7-it.de/ >>> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/pyinstaller. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Bryan A. Jones, Ph.D. > Associate Professor > Department of Electrical and Computer Engineering > 231 Simrall / PO Box 9571 > Mississippi State University > Mississippi state, MS 39762 > http://www.ece.msstate.edu/~bjones > bjones AT ece DOT msstate DOT edu > voice 662-325-3149 > fax 662-325-2298 > > Our Master, Jesus Christ, is on his way. He'll show up right on > time, his arrival guaranteed by the Blessed and Undisputed Ruler, > High King, High God. > - 1 Tim. 6:14b-15 (The Message) > -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.
