Apr-05-2018, 01:21 PM
Further to the thread by mehenaveen, I'd like some help please with configuring Geany. My specific problem is this:
I'm running a Linux distro. Following advice elsewhere, I decided that instead of using the system installer (Pacman) to install each and every additional Python module system-wide, I would set up a local Python installation so that as I learn and write code etc. I can install modules locally and without permissions, and that I can similarly delete that code and those files without touching the system files. If I simply wrote new files directly inside the virtual environment I'd have no problem. But that gets messy very quickly. I hope that explanation makes sense.
So, I have successfully installed a virtual environment under my home directory, which has the following path:
And the python files that I write, I choose to keep separate - the reason being I want to learn how one might structure and run an entire project despite I'm currently only writing single files of a few lines each. So, my
What I cannot figure out is how do I configure Geany such that I open my
I have looked at some of the documentation referring to PythonPaths, $HOME and so forth, but am nervous of editing my
Do I misunderstand something? Is the answer to indeed edit my
I'm running a Linux distro. Following advice elsewhere, I decided that instead of using the system installer (Pacman) to install each and every additional Python module system-wide, I would set up a local Python installation so that as I learn and write code etc. I can install modules locally and without permissions, and that I can similarly delete that code and those files without touching the system files. If I simply wrote new files directly inside the virtual environment I'd have no problem. But that gets messy very quickly. I hope that explanation makes sense.
So, I have successfully installed a virtual environment under my home directory, which has the following path:
/home/<username>/env/lib/python3.6/site-packages
And the python files that I write, I choose to keep separate - the reason being I want to learn how one might structure and run an entire project despite I'm currently only writing single files of a few lines each. So, my
.py
files live somewhere like:home/<username>/Documents/myPython/test.py
What I cannot figure out is how do I configure Geany such that I open my
test.py
file from within my Documents folder, but have Geany execute the python code inside the virtual environment. It is a problem of path naming surely?I have looked at some of the documentation referring to PythonPaths, $HOME and so forth, but am nervous of editing my
.bashrc
because, this being Linux, Python is embedded within it, and I want to keep my OS and my own Python projects completely separate.Do I misunderstand something? Is the answer to indeed edit my
.bashrc
or .bash_profile
? Or is there a way to simply configure Geany correctly?