Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys.path.append('..') #5

Open
alexdutton opened this issue Sep 20, 2011 · 0 comments
Open

sys.path.append('..') #5

alexdutton opened this issue Sep 20, 2011 · 0 comments

Comments

@alexdutton
Copy link
Member

Lots of Python files in the repo use sys.path.append(...) to place other directories on the Python path. They really should be properly namespaced packages. Here's the list:

[alex@karpathos DataStage]$ find -name "*.py" | xargs grep "sys.path.append"
./test/MiscLib/tests/TestDomHelpers.py:sys.path.append("../..")
./test/MiscLib/tests/TestTestUtils.py:sys.path.append("../..")
./test/MiscLib/tests/TestFunctions.py:sys.path.append("../..")
./test/MiscLib/tests/TestSuperGlobal.py:sys.path.append("../..")
./test/MiscLib/tests/TestScanFiles.py:sys.path.append("../..")
./test/MiscLib/tests/TestNetUtils.py:sys.path.append("../..")
./test/MiscLib/tests/TestCombinators.py:sys.path.append("../..")
./test/MiscLib/tests/TestAll.py:sys.path.append("../..")
./test/RDFDatabank/TestSubmission.py:    sys.path.append("..")
./test/TestLib/SparqlQueryTestCase.py:    sys.path.append("..")
./test/ZipTest/tests/TestRegEx.py:sys.path.append("../..")
./test/ZipTest/tests/ZipDirectory.py:sys.path.append("../..")
./test/FileShare/tests/TestFilePrivateArea.py:sys.path.append("../..")
./test/FileShare/tests/TestFileCollabAreaOld.py:sys.path.append("../..")
./test/FileShare/tests/TestFileSharedArea.py:sys.path.append("../..")
./test/FileShare/tests/TestWebDAVAccess.py:sys.path.append("../..")
./test/FileShare/tests/TestWebDAVbyHTTP.py:sys.path.append("../..")
./test/FileShare/tests/TestFileCommonArea.py:sys.path.append("../..")
./test/FileShare/tests/TestFileAccess.py:sys.path.append("../..")
./test/FileShare/tests/TestDeletedUserCheckFileAccess.py:sys.path.append("../..")
./test/FileShare/tests/TestFileDefaultArea.py:sys.path.append("../..")
./test/FileShare/tests/TestFileHTTPwriteCIFSread.py:sys.path.append("../..")
./test/FileShare/tests/TestFileCIFSwriteHTTPread.py:sys.path.append("../..")
./test/FileShare/tests/TestFileSilkGroup.py:sys.path.append("../..")
./test/FileShare/tests/TestFileCollabArea.py:sys.path.append("../..")
./test/FileShare/tests/TestFileUserAPublic.py:sys.path.append("../..")
./test/FileShare/tests/TestAll.py:sys.path.append("../..")
./test/FileShare/tests/TestFileUserASharedPublic.py:sys.path.append("../..")
./src/SubmitDatasetHandler/tests/TestMetadataMerging.py:sys.path.append("..")
./src/SubmitDatasetHandler/tests/TestMetadataMerging.py:sys.path.append("../cgi-bin")
./src/SubmitDatasetHandler/tests/TestSubmitDatasetHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/tests/TestSubmitDatasetHandler.py:sys.path.append("../cgi-bin")
./src/SubmitDatasetHandler/tests/TestDirectoryListingHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/tests/TestDirectoryListingHandler.py:sys.path.append("../cgi-bin")
./src/SubmitDatasetHandler/tests/TestGetDatasetMetadataHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/tests/TestGetDatasetMetadataHandler.py:sys.path.append("../cgi-bin")
./src/SubmitDatasetHandler/tests/TestRegEx.py:sys.path.append("../..")
./src/SubmitDatasetHandler/tests/TestSubmitDataset.py:###sys.path.append("../../../test")
./src/SubmitDatasetHandler/tests/TestSubmitDataset.py:sys.path.append("..")
./src/SubmitDatasetHandler/tests/TestAll.py:sys.path.append("../..")
./src/SubmitDatasetHandler/tests/TestAll.py:sys.path.append("..")
./src/SubmitDatasetHandler/tests/TestHttpSession.py:###sys.path.append("../../../test")
./src/SubmitDatasetHandler/tests/TestHttpSession.py:sys.path.append("..")
./src/SubmitDatasetHandler/MiscLib/tests/TestDomHelpers.py:sys.path.append("../..")
./src/SubmitDatasetHandler/MiscLib/tests/TestTestUtils.py:sys.path.append("../..")
./src/SubmitDatasetHandler/MiscLib/tests/TestScanDirectories.py:sys.path.append("../..")
./src/SubmitDatasetHandler/MiscLib/tests/TestFunctions.py:sys.path.append("../..")
./src/SubmitDatasetHandler/MiscLib/tests/TestSuperGlobal.py:sys.path.append("../..")
./src/SubmitDatasetHandler/MiscLib/tests/TestScanFiles.py:sys.path.append("../..")
./src/SubmitDatasetHandler/MiscLib/tests/TestNetUtils.py:sys.path.append("../..")
./src/SubmitDatasetHandler/MiscLib/tests/TestCombinators.py:sys.path.append("../..")
./src/SubmitDatasetHandler/MiscLib/tests/TestAll.py:sys.path.append("../..")
./src/SubmitDatasetHandler/cgi-bin/DirectoryContentsListingHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/cgi-bin/DirectoryContentsListingHandler.py:sys.path.append("../..")
./src/SubmitDatasetHandler/cgi-bin/SubmitDatasetConfirmationHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/cgi-bin/SubmitDatasetConfirmationHandler.py:sys.path.append("../..")
./src/SubmitDatasetHandler/cgi-bin/DirectoryListingHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/cgi-bin/DirectoryListingHandler.py:sys.path.append("../..")
./src/SubmitDatasetHandler/cgi-bin/GetDatasetMetadataHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/cgi-bin/GetDatasetMetadataHandler.py:sys.path.append("../..")
./src/SubmitDatasetHandler/cgi-bin/SubmitDatasetSummaryHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/cgi-bin/SubmitDatasetSummaryHandler.py:sys.path.append("../..")
./src/SubmitDatasetHandler/cgi-bin/DatasetDetailsErrorHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/cgi-bin/DatasetDetailsErrorHandler.py:sys.path.append("../..")
./src/SubmitDatasetHandler/cgi-bin/SubmitDatasetDetailsHandler.py:sys.path.append("..")
./src/SubmitDatasetHandler/cgi-bin/SubmitDatasetDetailsHandler.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestDomHelpers.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestTestUtils.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestScanDirectories.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestFunctions.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestSuperGlobal.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestScanFiles.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestNetUtils.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestCombinators.py:sys.path.append("../..")
./src/AdminUI/MiscLib/tests/TestAll.py:sys.path.append("../..")
./src/AdminUIHandler/tests/TestAdminInterfaceRestfulAPIs.py:sys.path.append(".")
./src/AdminUIHandler/tests/TestAdminInterfaceRestfulAPIs.py:sys.path.append("..")
./src/AdminUIHandler/services/AdminUIHandler.py:sys.path.append("..")
./src/AdminUIHandler/services/AdminUIHandler.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestDomHelpers.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestTestUtils.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestScanDirectories.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestFunctions.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestSuperGlobal.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestScanFiles.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestNetUtils.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestCombinators.py:sys.path.append("../..")
./src/AdminUIHandler/MiscLib/tests/TestAll.py:sys.path.append("../..")
./src/AllTests/tests/AllTests.py:sys.path.append("../../SubmitDatasetHandler")
./src/AllTests/tests/AllTests.py:sys.path.append("../../SubmitDatasetHandler/cgi-bin")
./src/AllTests/tests/AllTests.py:sys.path.append("../../SubmitDatasetHandler/tests")
./spike/applications/Admiral/Unused/Logout/LogoutHandler.py:sys.path.append("..")
./spike/applications/Admiral/Unused/Logout/LogoutHandler.py:sys.path.append("../..")
./spike/applications/Admiral/Unused/Logout/LogoutResponseHandler.py:sys.path.append("..")
./spike/applications/Admiral/Unused/Logout/LogoutResponseHandler.py:sys.path.append("../..")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant