{ "info": { "author": "Ben Booth", "author_email": "benwbooth@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Find project module directory relative to the running script.\n\nThis module will search the currently runnings script's parent directory, and\nall successive parent directories up to the root directory for a module matching\nthe `base` argument. If found, the directory is added to sys.path.\n\nThis is useful for sets of scripts that use custom project-specific modules that\nyou don't want to install into the system python modules folders.\n\nExample usage::\n\n import findmodules\n findmodules.init(base='modules', realpath=True)\n\nThis example will search for a folder called \"modules\" in the current script's\ndirectory, and all parent directories. Symlinks will be resolved first. If the\ndirectory is found, it will be appended to sys.path.\n\nParameters:\n\n * `bin`: Path to script file. Default is currently running script file\n * `base`: Name of base module directory to add to sys.path. Default is \"lib\".\n * `append`: Append module directory to the end of sys.path, or insert at the beginning? Default is to append.\n * `ignore`: List of directories to ignore during the module search. Default is to ignore \"/\" and \"/usr\".\n * `realpath`: Should symlinks be resolved first? Default is False.\n * `pythonpath`: Should the modules directory be added to the PYTHONPATH environment variable? Default is False.\n * `throw`: Should an exception be thrown if no modules directory was found? Default is False.\n\nReturns:\n * The path to the modules directory if it was found, otherwise None.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/benwbooth/python-findmodules", "keywords": "python module import directory path location folder", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "findmodules", "package_url": "https://pypi.org/project/findmodules/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/findmodules/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/benwbooth/python-findmodules" }, "release_url": "https://pypi.org/project/findmodules/0.6/", "requires_dist": null, "requires_python": null, "summary": "Find project module directory relative to the running script.", "version": "0.6" }, "last_serial": 1368611, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e91a1bfd77cbdabed1cdb3db953c87e4", "sha256": "1ece9b11649e264df2e64266385392dff6056ad69d55f39b75745c29deeb4e19" }, "downloads": -1, "filename": "findmodules-0.1.tar.gz", "has_sig": false, "md5_digest": "e91a1bfd77cbdabed1cdb3db953c87e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1465, "upload_time": "2014-12-02T00:40:31", "url": "https://files.pythonhosted.org/packages/cf/0c/8a2d37ee0e6e2a394d845c11951d55517ccb98d68832327c28f152657c52/findmodules-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "417012a0b41ead55ae6d50b19cc40e7f", "sha256": "342a9302382973ff038dd8111cc1f465d249ead5121ace102d7a4fbeed70d128" }, "downloads": -1, "filename": "findmodules-0.2.tar.gz", "has_sig": false, "md5_digest": "417012a0b41ead55ae6d50b19cc40e7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1963, "upload_time": "2014-12-02T00:52:03", "url": "https://files.pythonhosted.org/packages/00/33/a4351be757c82b7cfafb28e1da8fe4e1ae5824e575a5d487f30931605e77/findmodules-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "4a35ab73215f9f8684bff5b576c4a816", "sha256": "ada7663fb8bf2f7847eda349b6cbf5bb363afbd72b13f1899f75b5fa9da4bbed" }, "downloads": -1, "filename": "findmodules-0.3.tar.gz", "has_sig": false, "md5_digest": "4a35ab73215f9f8684bff5b576c4a816", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1962, "upload_time": "2014-12-02T00:56:33", "url": "https://files.pythonhosted.org/packages/e3/5e/8f8f048e529319affaf846d561235d18342bebbf8e5a2321696eaac5288f/findmodules-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "c55bdf88b51d7f24eb8e8e35d9e47c56", "sha256": "e78677f8aa5ececd773b8af2b66faeda3d38e02249cb93891250ea5e6299e7c0" }, "downloads": -1, "filename": "findmodules-0.4.tar.gz", "has_sig": false, "md5_digest": "c55bdf88b51d7f24eb8e8e35d9e47c56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1961, "upload_time": "2014-12-02T01:00:47", "url": "https://files.pythonhosted.org/packages/1c/df/b4df2d046dc69b9bc76d94a8bf33f1930996f1521bfbdbd3b93452362e99/findmodules-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "99186008f86f583075a4b31fa9b51aa2", "sha256": "fcf0d60c31c081e935f31a06c9b1c072122b2c2f6a65c4ad5fb894a264b09bde" }, "downloads": -1, "filename": "findmodules-0.5.tar.gz", "has_sig": false, "md5_digest": "99186008f86f583075a4b31fa9b51aa2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2129, "upload_time": "2014-12-02T01:13:27", "url": "https://files.pythonhosted.org/packages/4b/4b/09f03a3303882d30ad6a208348cdb3058306e984df8242c3a0a1572e984e/findmodules-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "a7c03aa7fed5d94c2ff3069a96c2e01d", "sha256": "00b875a366f4f75a5c622694bb8e6e7b570b2ab2fa9c648d91666fec6e0faac4" }, "downloads": -1, "filename": "findmodules-0.6.tar.gz", "has_sig": false, "md5_digest": "a7c03aa7fed5d94c2ff3069a96c2e01d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2089, "upload_time": "2015-01-02T21:42:18", "url": "https://files.pythonhosted.org/packages/ec/d0/0fd50aa7c86b7d6e8420d9deb3dd0ce02e4fedf0f2d4fadb36d9851b0820/findmodules-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a7c03aa7fed5d94c2ff3069a96c2e01d", "sha256": "00b875a366f4f75a5c622694bb8e6e7b570b2ab2fa9c648d91666fec6e0faac4" }, "downloads": -1, "filename": "findmodules-0.6.tar.gz", "has_sig": false, "md5_digest": "a7c03aa7fed5d94c2ff3069a96c2e01d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2089, "upload_time": "2015-01-02T21:42:18", "url": "https://files.pythonhosted.org/packages/ec/d0/0fd50aa7c86b7d6e8420d9deb3dd0ce02e4fedf0f2d4fadb36d9851b0820/findmodules-0.6.tar.gz" } ] }