On Feb 18, 2010, at 5:35 PM, Jeff Johnson wrote:

> In VFP I create and EXE that has external PRGs that work as an integral 
> part of the application but are not included in the EXE.  The reason I 
> do this is that when the EXE is installed on terminal services it is 
> difficult to update.  I can update the PRG and all works well.  Can I do 
> this with Python?  Create a PY.EXE but still have py files that I can 
> import with "import mypy" that isn't included in the executable on 
> terminal services.


        Sure - you just have to know the directory where these files will be. 
Then in your main program in the executable, just add

import sys
sys.path.append("/path/to/external/files")

        Python looks along the sys.path entries to locate modules being 
imported.


-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to