Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Freewrap Package Require Problem
Running Freewrap 6.0 (or Freewrapplus) on XP, package provide doesn't
seem to work, wherein it worked fine with older versions (at least up
to 5.2).
Basically, nothing I can do seems to allow package require/provide to
work.

Test example:

Using efftcl's venerable balloon package I create file "wrap.txt"
containing:

/balloon/aprint_balloon_help.tcl
/balloon/balloon.tcl
/balloon/getopt.tcl
/balloon/pkgindex.tcl
/balloon/tclIndex

I then create this script:

lappend auto_path /balloon
package require balloon
puts "Hello"

I wrap it with:

freewrapplus.exe c:/test.tcl -f C:/wrap.txt

Launching the resultant exe file on any system without a "real"
c:/balloon directory gives me:

"Error sourcing /test.tcl: can't find package balloon"


Is there now no way to use packages in Freewrap 6.0 without first
dumping it to a directory prior to using package require?

Any insight into this would be great.  I need my Freewrap!

-Daniel


Report this thread to moderator Post Follow-up to this message
Old Post
daneyul
04-19-05 01:59 AM


Re: Freewrap Package Require Problem
as far as I know you need to put the full path in your system of the
library you want to add. so if ballon is in c: do "lappend auto_path
c:/balloon" it looks strange also for me but it works.

Report this thread to moderator Post Follow-up to this message
Old Post
yahalom
04-19-05 08:59 AM


Re: Freewrap Package Require Problem
Nope, not on my system at least.  Using c:/balloon in the AutoPath
gives the exact same error.  Tried that, and every combination (with
and without driver letters)  in terms of specifying the packages in the
wrap.txt file.

So, you are saying with version 6.0 of Freewrap, you're able to
"package require" "wrapped" packages?  It always worked in the older
versions for me, but not now.  Actually, if I can just get absolute
confimation that it's working for others on Windows, then at least I
can assume it's something specific with my system, and not a bug...

BTW, I have noticed a definite bug with 6.0 regarding mkdir--if you do
it as an absolute path (ie file mkdir c:\test )  it won't work--have to
be in the parent folder, then do it as a relative directory (cd \ ;
file mkdir test).

-Daniel


Report this thread to moderator Post Follow-up to this message
Old Post
daneyul
04-20-05 01:58 AM


Re: Freewrap Package Require Problem
I am not sure about freewrap version 6. I worked with many freewrap
versions and it all worked with full path in the extension.txt file
and lappend to auto_path for the package library in the script. for
binary extenstions things work a bit different but this is not your
case.

Report this thread to moderator Post Follow-up to this message
Old Post
yahalom
04-21-05 09:00 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:20 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.