← Back to team overview

zim-wiki team mailing list archive

Re: Zim 0.42 released -- where is the Windows installer?

 

Jaap,

it seems I fixed almost all bugs to compile zim to windows exe file using
py2exe.
Most important of them are:

=== modified file 'zim/config.py'
--- zim/config.py       2010-01-13 18:39:54 +0000
+++ zim/config.py       2010-01-15 10:58:53 +0000
@@ -48,7 +48,7 @@
        if os.path.isfile('./zim.py'):
                scriptdir = '.' # maybe running module in test / debug
        else:
-               scriptdir = os.path.dirname(sys.argv[0])
+               scriptdir = os.path.dirname(os.path.abspath(sys.argv[0]))
        zim_data_dir = Dir(scriptdir + '/data')
        if zim_data_dir.exists():
                ZIM_DATA_DIR = zim_data_dir

=== modified file 'zim/stores/files.py'
--- zim/stores/files.py 2010-01-09 20:54:09 +0000
+++ zim/stores/files.py 2010-01-15 11:38:32 +0000
@@ -36,7 +36,8 @@
                '''
                StoreClass.__init__(self, notebook, path)
                self.dir = dir
-               assert self.store_has_dir()
+               st_has_dir = self.store_has_dir()
+               assert st_has_dir
                self.format = get_format('wiki') # TODO make configable

        def _get_file(self, path):

Please confirm if these fixes should be added to main zim tree.

Also do zim sources need python script to make windows executable file?
If so let's discuss how it should be organized

-----------------
Thanks,
Eugene


On Wed, Jan 13, 2010 at 09:48, Jaap Karssenberg
<jaap.karssenberg@xxxxxxxxx>wrote:

> On Wed, Jan 13, 2010 at 4:28 AM, Jeffrey Liu <jliu@xxxxxxxxxxx> wrote:
> > With regards to the Mac install for pyzim, I haven't worked with pyzim at
> all since the early releases.
> > I'll also need to review my notes and see if the install goes well for
> the latest release.
> > Depending on my free time, I may not be able to get to it until 0.43
> comes out anyway.
> > I'll send out a note with a status some time in the coming week or two.
>
> Actually I had a friend of mine test it and zim works using Mac Ports with
> X11.
> See the website for the exact packages you would need.
>
> Regards,
>
> Jaap
>
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki<https://launchpad.net/%7Ezim-wiki>
> Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki<https://launchpad.net/%7Ezim-wiki>
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References