2

I'm trying to make a script that runs nosetest with extra commands via nose-testconfig depending on my needs.

It works when running the file from a terminal window, but when run from inside pycharm it seems to not find the nose-testconfig package. I'm using virtualenv and I've installed all packages from inside pycharm, the virtualenv is correct but it seems that when I do calls by using os.system it doesn't use my virtualenv.

Code:

import os

os.system("pip freeze")
os.system("nosetests -s --tc=folder:bar runtests.py")

Result:

argparse==1.2.1
distribute==0.6.24
nose==1.3.0
wsgiref==0.1.2
Usage: nosetests [options]

nosetests: error: no such option: --tc
Felix
  • 35
  • 4

1 Answers1

1

The currently configured Python Interpreter. You can check the currently configured interpreter like so:

enter image description here enter image description here

Games Brainiac
  • 80,178
  • 33
  • 141
  • 199