Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems when sourcing a file #66

Open
guilhermeleobas opened this issue Aug 2, 2018 · 0 comments
Open

Problems when sourcing a file #66

guilhermeleobas opened this issue Aug 2, 2018 · 0 comments

Comments

@guilhermeleobas
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant