{"id":23122966,"url":"https://github.com/scottstanfield/whatdir","last_synced_at":"2026-05-17T15:33:10.390Z","repository":{"id":140164756,"uuid":"114563852","full_name":"scottstanfield/whatdir","owner":"scottstanfield","description":"Wiring up a link to run a bash script to launch Python code","archived":false,"fork":false,"pushed_at":"2017-12-17T19:51:55.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T21:41:17.434Z","etag":null,"topics":["bash","readlink","scripting"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottstanfield.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-17T19:48:04.000Z","updated_at":"2017-12-17T19:50:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1aa00f1-11fa-4a64-8f07-a5f55e629667","html_url":"https://github.com/scottstanfield/whatdir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scottstanfield/whatdir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottstanfield%2Fwhatdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottstanfield%2Fwhatdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottstanfield%2Fwhatdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottstanfield%2Fwhatdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottstanfield","download_url":"https://codeload.github.com/scottstanfield/whatdir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottstanfield%2Fwhatdir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33143575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","readlink","scripting"],"created_at":"2024-12-17T07:31:29.286Z","updated_at":"2026-05-17T15:33:10.368Z","avatar_url":"https://github.com/scottstanfield.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toy example demonstrating paths and readlink and linked bash scripts\n\nThis is how you symlink a pointer to a bash executable that calls a\nPython script. It's all about managing paths with GNU `readlink`.\n\nOnly works in Linux. For Mac, you need GNU `readlink` (install from brew\ninstall coreutils) and change script to call `greadlink`\n\nTo test, clone this repo to a tmp folder somewhere like ~/tmp/whatdir.\nThen:\n\n```\n./install.sh\ncd ~\n./whatdir\n```\n\n\n- `~/whatdir` is linked to `~/tmp/whatdir/main.sh`\n- `main.sh` figures out local path and executes `main.py`\n- `main.py` arbitrarily imports another python file in current folder\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottstanfield%2Fwhatdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottstanfield%2Fwhatdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottstanfield%2Fwhatdir/lists"}