Hi,<br><br>I am currently working in a small project that has a couple of dependencies.<br><br>The problem is I do not need them directly (no need to import them at any point) because I call those dependencies with subprocess.Popen <br>
<br>My current approach is to try an import anyway and fail with an error message if it could not import the module:<br><br>try:<br>    import dependency_1<br>    import dependency_2<br>except Exception, e:<br>    print &quot;DependencyError: %s&quot; % e<br>
<br>Is it better to put this within the tests directory along with the other tests? <br><br>Or maybe have them in both places: one in the main source code and the other one in the tests directory?<br><br><br>Thanks<br><br>
<br>Alfredo<br>