python - Refreshing a package project in Eclipse PyDev -


i have pydev project organized (i have omitted .git directory). aim build package called stattests.

    |   .gitignore     |   .project     |   .pydevproject     |        +---.git     +---stattests     |   |   setup.py     |   |        |   +---tests     |   |   |   tests.py     |   |   |   __init__.py     |                \---unittests             tests1.py 

the top level directory stattests contains setup.py file, , sub-folder tests, module contains __init__.py imports functions tests.py in same module folder. note tests here not unit tests, statistical tests.

unit tests contained in unittests folder, , looks this:

# unittests/tests1.py stattests.tests import tests series1 = pd.series(np.random.randn(10)) tests.test1(series1) 

when execute testing script not refresh definition of stattests.tests.test1 function, , uses old definition instead.

i have manually added folder , subfolders of project project pythonpath property.

help appreciated.

do have: 'user module deleter (umd)' (preferences > pydev > interactive console > user module deleter) > enable umd activated?

i.e.: if sending console modules cached in sys.module, so, imported modules aren't re-evaluated... now, umd, if enabled, tries force reload using 'runfile' instead of 'execfile) -- although can tricky, so, may fail -- so, if want simple run, recommended way running f9 (run current module), , ctrl+alt+enter recommended if want use symbols defined afterwards interactively in shell.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -