Skip to content

Tag: virtualenv

Python if statement with string as condition

There’s some code in virtualenv that’s tripping me up. It’s this: path.decode(“utf-8”) if “__DECODE_PATH__” else path from activate_this.py line 28. How can if “__DECODE_PATH__” ever be false? It’s possible it’s a bug, but since it’s in v…

fabric 2 traffic generation with non-blocking commands

I need to run some tests with a traffic generator that has different client and server commands. I would like to roll this into a fabric2 script which executes the traffic generation commands while cd’d into /root. I have public-key authentication on the iperf machines. How can I run this traffic genera…

how to activate virtual env in vs code?

I cant activate virtual env in vs code. I tried same code in the cmd console is work but not in the vs code terminal. “D:pythondjangoappdjangovenvScriptsactivate.bat” I write this code. I am using windows 10 pro Answer yeah Its beacuse of terminal vs code was using powershell ı changed with cmd