Discussion:
[Pyzo] Launch shell in script directory
a***@gmail.com
2015-12-07 13:41:13 UTC
Permalink
Hi,

This may be a really silly question but when I want to execute a simple script with only one file of code using F5 (which seems the most appropriate way) the current working folder of the shell is not updated to the folder of the script (like it woud in matlab for instance).

I also noticed that in the right panel it is possible to show some sort of explorer from which I can load python files for instance.

My question is : How do you "tell" pyzo to run the script in its folder (which would be convenient when using external data files).
Is it possible to change the current directory the explorer I was talking about (like in Matlab)?

I am asking this because I cannot use the autocompletion in the python shell when using the cd command which makes it really tedious to use.

Thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dietrich Pescoller
2016-09-21 09:15:58 UTC
Permalink
I have the same difficult,
wandering if you found a solution for this.

Thanks
Post by a***@gmail.com
Hi,
This may be a really silly question but when I want to execute a simple
script with only one file of code using F5 (which seems the most
appropriate way) the current working folder of the shell is not updated to
the folder of the script (like it woud in matlab for instance).
I also noticed that in the right panel it is possible to show some sort of
explorer from which I can load python files for instance.
My question is : How do you "tell" pyzo to run the script in its folder
(which would be convenient when using external data files).
Is it possible to change the current directory the explorer I was talking
about (like in Matlab)?
I am asking this because I cannot use the autocompletion in the python
shell when using the cd command which makes it really tedious to use.
Thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Almar Klein
2016-09-22 08:32:56 UTC
Permalink
To set the working directory to the script you run, use “run as script”.

If you mark a directory as a project (i.e. star it), you can press the star and select “go to this directory in the shell”.

Regards,
Almar

From: Dietrich Pescoller
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dietrich Pescoller
2016-09-22 09:50:56 UTC
Permalink
But if I do so,
the problem is that the shell is restarted,
so previous calculations are lost.

Maybe a third run option should be available:
- change folder in current shell, and execute file without restarting the
shell

Thanks,
Dietrich
Post by Almar Klein
To set the working directory to the script you run, use “run as script”.
If you mark a directory as a project (i.e. star it), you can press the
star and select “go to this directory in the shell”.
Regards,
Almar
*From: *Dietrich Pescoller <javascript:>
*Sent: *21 September 2016 11:16
*To: *Pyzo <javascript:>
*Subject: *[Pyzo] Re: Launch shell in script directory
I have the same difficult,
wandering if you found a solution for this.
Thanks
Hi,
This may be a really silly question but when I want to execute a simple
script with only one file of code using F5 (which seems the most
appropriate way) the current working folder of the shell is not updated to
the folder of the script (like it woud in matlab for instance).
I also noticed that in the right panel it is possible to show some sort of
explorer from which I can load python files for instance.
My question is : How do you "tell" pyzo to run the script in its folder
(which would be convenient when using external data files).
Is it possible to change the current directory the explorer I was talking
about (like in Matlab)?
I am asking this because I cannot use the autocompletion in the python
shell when using the cd command which makes it really tedious to use.
Thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Almar Klein
2016-09-22 11:21:46 UTC
Permalink
I just pushed a change to change the current directory when executing a file, even if not as a script. I suppose pragmatism beats purity here...

- Almar



From: Dietrich Pescoller
Sent: 22 September 2016 11:50
To: Pyzo
Cc: ***@gmail.com; ***@gmail.com
Subject: Re: [Pyzo] Re: Launch shell in script directory

But if I do so,
the problem is that the shell is restarted,
so previous calculations are lost.

Maybe a third run option should be available:
- change folder in current shell, and execute file without restarting the shell

Thanks,
Dietrich

Il giorno giovedì 22 settembre 2016 10:32:58 UTC+2, Almar Klein ha scritto:
To set the working directory to the script you run, use “run as script”.
 
If you mark a directory as a project (i.e. star it), you can press the star and select “go to this directory in the shell”.
 
Regards,
  Almar
 
From: Dietrich Pescoller
Sent: 21 September 2016 11:16
To: Pyzo
Cc: ***@gmail.com
Subject: [Pyzo] Re: Launch shell in script directory
 
I have the same difficult,
wandering if you found a solution for this.

Thanks

Il giorno lunedì 7 dicembre 2015 15:20:22 UTC+1, ***@gmail.com ha scritto:
Hi,

This may be a really silly question but when I want to execute a simple script with only one file of code using F5 (which seems the most appropriate way) the current working folder of the shell is not updated to the folder of the script (like it woud in matlab for instance).

I also noticed that in the right panel it is possible to show some sort of explorer from which I can load python files for instance.

My question is : How do you "tell" pyzo to run the script in its folder (which would be convenient when using external data files).
Is it possible to change the current directory the explorer I was talking about (like in Matlab)?

I am asking this because I cannot use the autocompletion in the python shell when using the cd command which makes it really tedious to use.

Thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
 
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dietrich Pescoller
2016-09-23 08:09:19 UTC
Permalink
Thans,

Q: when do you think will be released the next official verison?
Post by Almar Klein
I just pushed a change to change the current directory when executing a
file, even if not as a script. I suppose pragmatism beats purity here...
- Almar
*From: *Dietrich Pescoller <javascript:>
*Sent: *22 September 2016 11:50
*To: *Pyzo <javascript:>
*Subject: *Re: [Pyzo] Re: Launch shell in script directory
But if I do so,
the problem is that the shell is restarted,
so previous calculations are lost.
- change folder in current shell, and execute file without restarting the shell
Thanks,
Dietrich
To set the working directory to the script you run, use “run as script”.
If you mark a directory as a project (i.e. star it), you can press the
star and select “go to this directory in the shell”.
Regards,
Almar
*From: *Dietrich Pescoller
*Sent: *21 September 2016 11:16
*To: *Pyzo
*Subject: *[Pyzo] Re: Launch shell in script directory
I have the same difficult,
wandering if you found a solution for this.
Thanks
Hi,
This may be a really silly question but when I want to execute a simple
script with only one file of code using F5 (which seems the most
appropriate way) the current working folder of the shell is not updated to
the folder of the script (like it woud in matlab for instance).
I also noticed that in the right panel it is possible to show some sort of
explorer from which I can load python files for instance.
My question is : How do you "tell" pyzo to run the script in its folder
(which would be convenient when using external data files).
Is it possible to change the current directory the explorer I was talking
about (like in Matlab)?
I am asking this because I cannot use the autocompletion in the python
shell when using the cd command which makes it really tedious to use.
Thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Almar Klein
2016-09-24 12:23:12 UTC
Permalink
Post by Dietrich Pescoller
when do you think will be released the next official verison?
Last week. At least, that’s what I planned :) probably next week.



From: Dietrich Pescoller
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dietrich Pescoller
2016-09-26 17:15:14 UTC
Permalink
:-) ok thanks!!
Post by Almar Klein
Post by Dietrich Pescoller
when do you think will be released the next official verison?
Last week. At least, that’s what I planned :) probably next week.
*From: *Dietrich Pescoller <javascript:>
*Sent: *23 September 2016 10:09
*To: *Pyzo <javascript:>
*Subject: *Re: [Pyzo] Re: Launch shell in script directory
Thans,
Q: when do you think will be released the next official verison?
I just pushed a change to change the current directory when executing a
file, even if not as a script. I suppose pragmatism beats purity here...
- Almar
*From: *Dietrich Pescoller
*Sent: *22 September 2016 11:50
*To: *Pyzo
*Subject: *Re: [Pyzo] Re: Launch shell in script directory
But if I do so,
the problem is that the shell is restarted,
so previous calculations are lost.
- change folder in current shell, and execute file without restarting the shell
Thanks,
Dietrich
To set the working directory to the script you run, use “run as script”.
If you mark a directory as a project (i.e. star it), you can press the
star and select “go to this directory in the shell”.
Regards,
Almar
*From: *Dietrich Pescoller
*Sent: *21 September 2016 11:16
*To: *Pyzo
*Subject: *[Pyzo] Re: Launch shell in script directory
I have the same difficult,
wandering if you found a solution for this.
Thanks
Hi,
This may be a really silly question but when I want to execute a simple
script with only one file of code using F5 (which seems the most
appropriate way) the current working folder of the shell is not updated to
the folder of the script (like it woud in matlab for instance).
I also noticed that in the right panel it is possible to show some sort of
explorer from which I can load python files for instance.
My question is : How do you "tell" pyzo to run the script in its folder
(which would be convenient when using external data files).
Is it possible to change the current directory the explorer I was talking
about (like in Matlab)?
I am asking this because I cannot use the autocompletion in the python
shell when using the cd command which makes it really tedious to use.
Thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dietrich Pescoller
2016-09-22 08:43:23 UTC
Permalink
But if I do so,
the problem is that the shell is restarted,
so previous calculations are lost.

Maybe a third run option should be available:
- change folder in current shell, and execute file without restarting the shell

Thanks,
Dietrich
To set the working directory to the script you run, use “run as script”.
If you mark a directory as a project (i.e. star it), you can press the star
and select “go to this directory in the shell”.
Regards,
Almar
From: Dietrich Pescoller
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...