Hi,
 
When you say 'local directory of fab.py' do you mean PYTHONPATH=`pwd`:/usr/bin? 
If you set python path to your present working directory (where your code is) 
it should see your fab.py so long as you specify $ fab -f fab.py. Or, simply 
rename your file to fabric.py and run $ fab ... assuming you have a predefined 
function in fabric.py called deploy.
 

________________________________
 From: "[email protected]" <[email protected]>
To: "[email protected]" <[email protected]> 
Sent: Thursday, April 18, 2013 2:44 PM
Subject: [Fab-user] Fabric and pythonpath
  

When I run some code under straight python, the pythonpath contains the local 
directory where my code is located.
When I run that same code under fabric the pythonpath has the local directory 
of fab.py, /usr/bin, but not the directory of the code that I'm running.

That seems to complicate importing for me.

Is there a way to cause the local directory of my code to be part of the 
pythonpath in fabric without hard coding it?

_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to