Thank you everyone !
My situation was to check the indentation of every python file via a script.
I think looking for bin/activate will work.
On 28 April 2016 at 23:08, Alan Gauld via Tutor wrote:
> On 28/04/16 11:11, Steven D'Aprano wrote:
>
> > You know, some day I must learn why people use v
Thanks Oliver and Alex, I didnt know about these commands :D
Oliver,
When i typed
print filename
print sys.executable
print sys.prefix
print os.path.split(sys.prefix)[-1]
my output was
/home/kanikaa/pydsa7/venv/lib/python2.7/site-pa
Thanks Danny
On 27 Apr 2016 04:22, "Danny Yoo" wrote:
> On Tue, Apr 26, 2016 at 3:43 PM, Kanika Murarka
> wrote:
> > The folder which we create using command
> > $ Virtualenv venv
>
>
> Hi Kanika,
>
>
> I think you need to ask the virtualenv folks
The folder which we create using command
$ Virtualenv venv
On 27 Apr 2016 00:57, "Danny Yoo" wrote:
On Tue, Apr 26, 2016 at 6:47 AM, Kanika Murarka
wrote:
> Hi,
> I want to detect whether a 'file1.py' belongs to virtual environment
> folder( generally 'ven
Hi,
I want to detect whether a 'file1.py' belongs to virtual environment
folder( generally 'venv') or not ( considering different people may have
different names for virtual environment folder.).
I am able to detect it on my machine, but how to make it generalized. I am
not getting anything on Int