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

export command not working #57

Open
MSDuncan82 opened this issue Sep 23, 2019 · 1 comment
Open

export command not working #57

MSDuncan82 opened this issue Sep 23, 2019 · 1 comment
Labels

Comments

@MSDuncan82
Copy link

The keep command does not appear to be changing CDPATH even though the exact same command run without keep seems to work:

(base) user:~$ echo $CDPATH
/home/mike
(base) user:~$ keep run set

 1	$ export CDPATH=.:~/Documents/programming_projects/ :: Set CDPATH to ~ and programming_projects

Execute
	$ export CDPATH=.:~/Documents/programming_projects/ :: Set CDPATH to ~ and programming_projects

? [Y/n]: y
(base) user:~$ echo $CDPATH
/home/mike
(base) user:~$ export CDPATH=.:~/Documents/programming_projects/
(base) user:~$ echo $CDPATH
.:/home/mike/Documents/programming_projects/

Any idea whats going on here?

@OrkoHunter
Copy link
Owner

Hi @MSDuncan82 !

I can see that keep runs a command using os.system command.

This Q&A on stackoverflow says that it is not possible to use the export command as it is from Python. So, perhaps keep should give out a warning that export command will not work from Python or there may be a workaround to it.

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

No branches or pull requests

2 participants