AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Function Libraries and #Include Behavior

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
Piz



Joined: 16 Feb 2008
Posts: 46

PostPosted: Tue Mar 04, 2008 12:19 am    Post subject: Function Libraries and #Include Behavior Reply with quote

Maybe I'm missing something, but it seems to me that there's an inconsistency between the way function libraries work and the way #include works. If a file to be included via #include doesn't have a full path, it's assumed to be in the startup/working directory. However the function library mechanism refers to %A_MyDocuments%\AutoHotkey\Lib\ and path-to-the-currently-running-AutoHotkey.exe\Lib\. Also, ahk2exe makes a completely different assumption about the default location of an #included file - the directory containing the script being compiled.

None ever looks at the others' locations. Seems to me that they should, or that a different, unifying scheme should be adopted.

Thoughts?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group