PyScripter-Portable.exe isn't portable!

126 views
Skip to first unread message

gilch

unread,
Mar 24, 2010, 2:56:48 PM3/24/10
to PortablePython
A real portable application does not leave its files or settings on
the host computer. This is so that the host isn't altered, and your
settings are preserved even on a different machine. Otherwise you
might as well just keep the installer on your usb drive.

I downloaded PortablePython 1.1 for python 2.5.4. If I run PyScripter-
Portable.exe, it automatically stores files in (local documents and
settings folder)Application Data\PyScripter\ .

Are all these "portable" programs storing files that I don't know
about? Are they changing registry settings? Can you fix this?

Perica Zivkovic

unread,
Mar 24, 2010, 4:18:52 PM3/24/10
to PortablePython
Hi there,

PyScripter configuration file is stored next to the executable (in
Portable Python folder) and it is not writing any settings to the
registry. It can be that some cache data is stored in App data folder
in user's local profile. This can be fixed and I will investigate this
for the next release of PP and fix if this is the case. Like you said
all applications/libraries which come with PP should be portable and
should not leave any trace on host PC.

cheers,

Perica

ThievingSIx

unread,
Apr 14, 2010, 4:03:02 AM4/14/10
to PortablePython
Actually yes, most portable applications(such as those found at
portableapps.com) will have files and registry changes during run
time. What should happen is during the clean-up(when you close the
app), those registry entries and files should be removed and returned,
if need be, to there original state.

Perica Zivkovic

unread,
Apr 14, 2010, 5:52:52 AM4/14/10
to PortablePython
Thats true and because of that I have task to investigate how to make
PP fully portableapps.com compliant for next release.

It is not an easy task as one needs to know what are all the files/
settings all third party libraries are creating during runtime.

kind regards,

Perica

Vincent MAILLE

unread,
Apr 17, 2010, 4:46:23 AM4/17/10
to portabl...@googlegroups.com
Hi,

    I've seen that I can force the new division (2/3=0.6666666) with the command line -Qnew (http://www.linuxtopia.org/online_books/programming_books/python_programming/python_ch05s06.html) or -i (A future statement typed at an interactive interpreter prompt will take effect for the rest of the interpreter session. If an interpreter is started with the -i option, is passed a script name to execute, and the script includes a future statement, it will be in effect in the interactive session started after the script is executed. : http://docs.python.org/reference/simple_stmts.html#future). I want to force the new division in all my scritps with PyScripter, but I don't find where I can configured this (I don't want to have to write from __future__ import division each time)

Thanks for your help,

Vincent

--
You received this message because you are subscribed to the Google Groups "PortablePython" group.
To post to this group, send email to portabl...@googlegroups.com
To unsubscribe from this group, send email to portablepytho...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/portablepython?hl=en

Vincent MAILLE

unread,
Jun 27, 2010, 3:33:20 AM6/27/10
to portabl...@googlegroups.com
Hello,

    Little up, because I've finished my project and it's the last change I need. I found how to force the division with registred python : python.exe -Qnew myfile.py but how can I use this with pyscripter in portablepython ?

Thanks for yout help, it's very important for me
(And sorry for my bad english ;) )

Vincent




Vincent MAILLE a écrit :

Perica Zivkovic

unread,
Jun 27, 2010, 4:20:16 AM6/27/10
to PortablePython
Hi there,

this is more question for PyScripter group as they will know more
about options you can use.

I found a small workaround you can use, you need to modify external
run configuration to handle command parameters correctly. If you go to
PyScripter menu "Run -> Configure external run" , you need to change
parameters field from "$[ActiveDoc-Short] $[CmdLineArgs]" to "-Qnew $
[ActiveDoc-Short] $[CmdLineArgs]" .

After that when you execute your script as external run (via menu or
by using Alt+F9) it will use -Qnew as a parameter and you will get 2/3
= 0.6666666667

I could not get internal run to use this parameter so if you need it
you need to ask on PyScripter google group http://groups.google.com/group/PyScripter

cheers,

Perica

On Jun 27, 9:33 am, Vincent MAILLE <vi...@altern.org> wrote:
> Hello,
>
>     Little up, because I've finished my project and it's the last change
> I need. I found how to force the division with registred python :
> python.exe -Qnew myfile.py but how can I use this with pyscripter in
> portablepython ?
>
> Thanks for yout help, it's very important for me
> (And sorry for my bad english ;) )
>
> Vincent
>
> Vincent MAILLE a �crit :
>
>
>
> > Hi,
>
> >     I've seen that I can force the new division (2/3=0.6666666) with
> > the command line -Qnew
> > (http://www.linuxtopia.org/online_books/programming_books/python_progr...)
> > or -i (A future statement typed at an interactive interpreter prompt
> > will take effect for the rest of the interpreter session. If an
> > interpreter is started with the /-i/
> > <http://docs.python.org/using/cmdline.html#cmdoption-i> option, is
> > passed a script name to execute, and the script includes a future
> > statement, it will be in effect in the interactive session started
> > after the script is executed. :
> >http://docs.python.org/reference/simple_stmts.html#future). I want to
> > force the new division in all my scritps with PyScripter, but I don't
> > find where I can configured this (I don't want to have to write from
> > __future__ import division each time)
>
> > Thanks for your help,
>
> > Vincent
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "PortablePython" group.
> > To post to this group, send email to portabl...@googlegroups.com
> > To unsubscribe from this group, send email to
> > portablepytho...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/portablepython?hl=en- Hide quoted text -
>
> - Show quoted text -

Vincent MAILLE

unread,
Jun 27, 2010, 6:16:38 AM6/27/10
to portabl...@googlegroups.com
Hello,

    I want to force the division in pyscripter in the portablepython version. I don't want to use from __future__ import division.

Perica Zivkovic from portablepython project show me how to use it in external run :

I found a small workaround you can use, you need to modify external
run configuration to handle command parameters correctly. If you go to
PyScripter menu "Run -> Configure external run" , you need to change
parameters field from "$[ActiveDoc-Short]  $[CmdLineArgs]" to "-Qnew $"
[ActiveDoc-Short] $[CmdLineArgs]" .

Is it possible to configure the same in internal run? Thanks for your help, 

Vincent



Vincent MAILLE

unread,
Jun 27, 2010, 6:19:52 AM6/27/10
to portabl...@googlegroups.com
Thanks for your help, I'll ask my question to Pyscripter group. I hope we can find a solution.

Thanks,
Vincent




Perica Zivkovic a écrit :
Reply all
Reply to author
Forward
0 new messages