diff options
| author | Jeff Carr <[email protected]> | 2024-03-09 09:23:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-03-09 09:23:04 -0600 |
| commit | e6be71a33caf7dba9d4060231bd34586aeb41fe2 (patch) | |
| tree | 39c754a4147ea29b715b0c79cfdc697e387f9a6f /readWorkFile.go | |
| parent | 581a4d96fcdcaf93a3c3169ecc60c2f603ceb7ae (diff) | |
git clone deps
Diffstat (limited to 'readWorkFile.go')
| -rw-r--r-- | readWorkFile.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/readWorkFile.go b/readWorkFile.go index e11ad90..3383a82 100644 --- a/readWorkFile.go +++ b/readWorkFile.go @@ -3,6 +3,7 @@ package main import ( "bufio" "os" + "path/filepath" "strings" "go.wit.com/lib/gui/shell" @@ -15,8 +16,9 @@ func addDir(d string) { } } -func readControlFile() error { - file, err := os.Open("go.work") +func readControlFile(path string) error { + fullname := filepath.Join(path, "go.work") + file, err := os.Open(fullname) if err != nil { return err } |
