Holcombe:SubversionEtc: Difference between revisions
Line 9: | Line 9: | ||
== Accessing your stand-alone psychopy modules from a terminal session == | == Accessing your stand-alone psychopy modules from a terminal session == | ||
Psychopy IDE editor is annoying, I prefer to run IPython from terminal and edit in TextWrangler. Once in python, I execute this code to add the directories to my path. | Psychopy IDE editor is annoying, I prefer to run IPython from terminal and edit in TextWrangler. Once in python, I execute [Image:AddPsychopyStandAlones.txt this code] to add the directories to my path. | ||
<nowiki> | <nowiki> | ||
#'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PsychoPy-1.00.00-py2.5.egg' | #'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PsychoPy-1.00.00-py2.5.egg' |
Revision as of 16:17, 25 May 2009
Recent members• Alex Holcombe
|
Projects• Testing Booth Calendar |
|
Technical• Skills Checklist |
Other• Plots,Graphs
|
Subversion
here at Sydney Uni we live behind a proxy server so subversion will not work unless you configure subversion for that https://www.opends.org/wiki/page/ConfiguringSubversionToUseAProxyServer
which tells you to edit ~/.subversion/servers to tell it about the proxy. If you don't have this file, first try typing just 'svn' in terminal to check if you have it, if so run ANY command on svn and the config file will be created. Then you can hopefully execute: svn checkout http://psychopy.googlecode.com/svn/trunk/ psychopy-read-only
Accessing your stand-alone psychopy modules from a terminal session
Psychopy IDE editor is annoying, I prefer to run IPython from terminal and edit in TextWrangler. Once in python, I execute [Image:AddPsychopyStandAlones.txt this code] to add the directories to my path. #'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PsychoPy-1.00.00-py2.5.egg' import os psychopyStandAloneLibDir = '/Applications/PsychoPyIDE.app/Contents/Resources/lib/python2.5/' os.listdir(psychopyStandAloneLibDir) for root,dirs,files in os.walk(psychopyStandAloneLibDir): topleveldirs = dirs break for dir in topleveldirs: if (dir != 'config') and (dir != 'lib-dynload'): #assume all other directories are python packages pathToAdd = psychopyStandAloneLibDir + dir +'/' print pathToAdd sys.path.insert(0,pathToAdd) #add directory at beginning of path