I have a package 'UnitTests', containing the following file TestWork.py:
if __name__ == '__main__':
The folder also contains __init__.py:
__all__ = [TestWork]
If I run it, the unit test works OK, but if I uncomment 'import StartUp' which is a module in the root folder (one down from UnitTests), there is an error when importing TestWork.
How do I rectify this? I would appreciate suggestions, I'm sure it's something simple that I'm missing.
I managed to solve this by going to Project -> Properties, and adding all source folders to PYTHONPATH.
Yeap, that's the right way for doing it.
You should take a look at the getting started manual: http://fabioz.com/pydev/manual_101_root.html it covers topics on how to configure your project (among others).
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.