-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Hi,
When sourcing a file, the sourcing process happens in the dir that the script is running and not in the one specified by cwd. For instance, if one is in /foo and the script below is in /foo/bar/baz, the variable var is equal to foo and not baz. It's possible to add a flag indicating where the sourcing happens?
export var=$(basename $(pwd))
Also, the path src script must always be absolute or can be relative to cwd?
with Sultan.load(
cwd='/foo/bar',
src='baz/config.sh') as s:
s.pip(...)Regards
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels