-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional variable for paths needed #143
Comments
Could you not add your virtualenv dir to your Atom project thus making it possible to use $PROJECT? |
As I said, I use virtualenvwrapper for easier management of multiple virtualenvs which keeps virtualenvs in a single place. |
Yeah, it basically works. |
I think that's the best we can get right now short of adding UI for per-project interpreter selection. |
It shouldn't slow down especially if you configure your atom to ignore On Mon, Dec 14, 2015, 21:19 Patryk Zawadzki [email protected]
|
So, options are:
Both options doesn't need additional configuration in package settings. |
@sadovnychyi As you pointed, after adding venv specific folders as ignored to Atom settings, it doesn't index them. |
@Alexx-G FYI #166 |
@sadovnychyi Nice! Thanks for update! |
I like that you can add the virtualenv path to the project's path in Wouldn't it be simple to add a Additionnaly, a command to automate the process would be nice. Something like : "Autocomplete Python: Set virtualenv" |
@obust there's no projects in Atom core (yet), and since you can pretty much use any virtual environments with $PROJECT and $PROJECT_NAME substitutions I'm not seeing an issue here. But I'm always open to pull requests if you think something could be improved! |
Oh my bad, i see project-specific settings is still an open issue #5168 I was led to believe otherwise since both project-manager and project-plus make use of the same Also, when you "Add a project folder" (which is an Atom command) it adds the path to this file as well. I tested this while disabling project-manager. It seems that atom does consider this file as a standard for project-specific variables. So i am confused here. |
It didn't work for me with latest beta. Added new folder into a project -- cannot see Could you explain your use case for this and while using substitutions is not enough for you? |
Check your The substitution works well for most cases, it just happen that i use virtualenvwrapper and sometimes my virtualenv names don't match my project name (i could explain why but that's not relevant here). So having an arbitrary option to clearly tell where the virtualenv is rather than making assumptions would be a more robust solution. |
Still nothing. I understand, but there's no official format for that file, so I'm not sure how to act. |
Ok, nevermind then, maybe later ;) |
@sadovnychyi a very frequent case to have naming differences is for example when testing on a single branch a separate virtualenv when upgrading requirements and frameworks, while you want to keep your original virtualenv to work on master or other branches... I am very interested by this feature, very well supported by PyCharm for example, but indeed blocked by the Atom core :-/ |
Settings for python executable and additional packages are very useful, but they don't cover the use case when you've a separated folder for virtualenvs.
E.g. I manage virtualenvs with virtualenvwrapper and all my virtualenvs are stored in
~/.virtualenvs/
.So in this case I just can't use
$PROJECT
variable.Launching of atom from activated virtualenv doesn't work for me because usually I have more than 1 running instances of atom. So, if I've opened first instance of atom from venv1, the second instance started from venv2 will handle packages from venv1.
It'll be handy to have a
$PROJECT-ROOT
variable which holds only root dirname, in that case I could configure paths like~/.virtualenvs/$PROJECT-ROOT/
.Is it possible to add this option?
The text was updated successfully, but these errors were encountered: