Skip to content

Instantly share code, notes, and snippets.

@maplpro
Created September 21, 2010 11:40
Show Gist options
  • Select an option

  • Save maplpro/589552 to your computer and use it in GitHub Desktop.

Select an option

Save maplpro/589552 to your computer and use it in GitHub Desktop.
python virtual environment
import sys
sys.path.append('C:\\Program Files\\Quest Software\\Site Administrator for SharePoint\\SharePoint Information Portal\\Python25\\Lib')
sys.path.append( 'C:\\Program Files\\Quest Software\\Site Administrator for SharePoint\\SharePoint Information Portal\\Python25\\DLLs' )
sys.path.append('C:\\Program Files\\Quest Software\\Site Administrator for SharePoint\\SharePoint Information Portal')
sys.path.append('C:\\Program Files\\Quest Software\\Site Administrator for SharePoint\\SharePoint Information Portal\\Application')
sys.path.append( r'C:\Program Files\Quest Software\Site Administrator for SharePoint\SharePoint Information Portal\Python25\Lib\site-packages' )
sys.path.append( r'C:\Program Files\Quest Software\Site Administrator for SharePoint\SharePoint Information Portal\Python25\Lib\site-packages\win32com')
import site
site.addsitedir( 'C:\\Program Files\\Quest Software\\Site Administrator for SharePoint\\SharePoint Information Portal\\Python25\\Lib\\site-packages' )
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'Application.settings'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment