Modify

Opened 5 years ago

Last modified 5 years ago

#2912 new Feature Request

Additional include paths: New command line switch for AutoIt3.exe

Reported by: Tomasz Szreder (tomasz.szreder@… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Command-line switches, include paths Cc:

Description

It is possible to set additional include paths in the Registry as below:

[HKEY_CURRENT_USER\Software\AutoIt v3]

[HKEY_CURRENT_USER\Software\AutoIt v3\AutoIt]
"Include"="C:\\Program Files\\AutoIt3\\Include;Y:\\automation\\core"

We often use AutoIt3 in a portable way (non-installable: copy scripts and interpreter and then execute). As a rule, we do not alter Registry in test environments.

Our test scripts are decomposed into many small libraries in subfolders including each other by relative paths (because no assumptions can be made about working directory). It would be very convenient if include paths could be specified relative to a predefined root directory, provided as a command line switch to AutoIt3.exe interpreter.

Example:

AutoIt3.exe /AutoIt3Include="C:\\Program Files\\AutoIt3\\Include;Y:\\automation\\core" MyTestScript.au3

It would greatly improve maintainability of larger projects written in AutoIt3.

Thanks for considering.

Regards
Tomasz Szreder
tomasz.szreder@…

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by BrewManNH

You state you don't want to alter the registry in your test environments, yet you're asking for registry entries to be used by AutoIt? I'm confused as to exactly what it is you're asking for.

comment:2 Changed 5 years ago by Tomasz Szreder <tomasz.szreder@…>

Sorry for the confusion. What I asked for was that in addition to AutoIt3 scanning Registry entries mentioned, AutoIt3 could also read additional include paths from command line. This way, I wouldn't have to add anything to the Registry *and* make AutoIt3 recognize more include paths.

So once again, as in the example:
AutoIt3.exe /AutoIt3Include="Y:\\automation\\core" MyTestScript.au3

If I put MyTestScript.au3 on user's Desktop, and have it call another include like:
#include "logging\MyLogger.au3"
I would like AutoIt3 to look for MyLogger.au3 in "Y:\automation\core\logging" as well.

I know I can write
#include "Y:\automation\core\logging\MyLogger.au3"
but the paths change very often, and I'd prefer to specify the root include paths when starting AutoIt3.exe.

Hope this clarifies the request.
Regards
Tomasz Szreder

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as new The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.