![]() ![]() ![]() #gets every file in the cwd and sets _the_projects iml fileĮnv_name = re.findall("~/(.*)\" jdkType", line.strip()) #sets Current Working Directory to _the_projects. Here is a script that I wrote and I hope anyone finds it useful. Thanks Chris, your script worked for some projects but not all on my machine. Then set P圜harm's Shell path to: /bin/bash -rcfile ~/bin/pycharmactivate "$HOME/$ACTIVATERC" else echo "Could not find virtualenv from P圜harm" fi idea/workspace.xml | perl -n -e 'print "\$1/bin/activate" if m:option name="SDK_HOME" value="\\\$USER_HOME\\\$(.*)/bin/python":'` Removes the need to update the project settings if you change the environment.ĭrop this script into a bin directory somewhere.Removes the need to create an rcfile for each environment.Script still uses -rcfile, but attempts to emulate the INVOCATION behaviour of a login shell. P圜harm normally runs a login shell, but -rcfile stopped this happening. Restores the behaviour of a login shell.Based on answers from Peter and experimentation, I've come up with a good "general solution", which solves the following: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |