Hi,

   I'm trying to add data to an executable created with 'onedir'
option.
   I'd like to ad a 'locale' and a 'demo' dir, so I edited
sqledit.spec as
   follows::

      coll = COLLECT( exe,
             a.binaries,
             a.zipfiles,
             a.datas,
              [('README','/misc/src/hg/py/sqlkit/README','DATA')],
              [('locale','/misc/src/hg/py/sqlkit/sqlkit/locale','DATA')],
             strip=False,
             upx=True,
             name=os.path.join('dist', 'sqledit'))

    But Buid.py complains it is a directory. What's the way to add a
    hierarchy of files?  Will that be enought to activate locale
support to
    the executable?

    thanks in advance
    sandro
    *:-)


        checking Analysis
        checking PYZ
        checking PKG
        checking EXE
        checking COLLECT
        building because toc changed
        building COLLECT outCOLLECT4.toc
        Traceback (most recent call last):
          File "./Build.py", line 1069, in <module>
            main(args[0], configfilename=opts.configfile)
          File "./Build.py", line 1057, in main
            build(specfile)
          File "./Build.py", line 1020, in build
            execfile(spec)
          File "sqledit/sqledit.spec", line 21, in <module>
            name=os.path.join('dist', 'sqledit'))
          File "./Build.py", line 801, in __init__
            self.__postinit__()
          File "./Build.py", line 196, in __postinit__
            self.assemble()
          File "./Build.py", line 848, in assemble
            shutil.copy2(fnm, tofnm)
          File "/usr/lib/python2.5/shutil.py", line 91, in copy2
            copyfile(src, dst)
          File "/usr/lib/python2.5/shutil.py", line 46, in copyfile
            fsrc = open(src, 'rb')
        IOError: [Errno 21] Is a directory


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to