Skip to content

Commit fbec34e

Browse files
drew-512sbinet
andauthored
Update modules/runtime.go
Co-authored-by: Sebastien Binet <binet@cern.ch>
1 parent 85e3a4a commit fbec34e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func resolveRunPath(runPath string, opts py.CompileOpts, pathObjs []py.Object, t
195195
cont, err = tryPath(subPath)
196196
}
197197
if cont && err == nil {
198-
if len(cwd) == 0 {
198+
if cwd == "" {
199199
cwd, _ = os.Getwd()
200200
}
201201
subPath := path.Join(cwd, fpath)

0 commit comments

Comments
 (0)