Jump to content

Au3Stripper does not always handle rel. paths right


Recommended Posts

Hi -

It is the first time I'm using Au3Stripper - VERY helpful tool :)

I noticed that it handles relative paths not always right if compiling - please see the reproducer in the ZIP.

Including AU3s this way works well:

#include ".\test.au3"
#include "..\test.au3"
#include "..\..\test.au3"

This way:

#include ".\..\test.au3"
#include ".\..\..\test.au3"

... produces such an error:

>Running Au3Stripper (19.102.1901.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline:
Can't open file C:\TEMP\TEST\include1\include2\__include2.au3
!>08:36:04 ---------------------------------------------------------------
!>08:36:04 Au3Stripper ended with errors, using original scriptfile.rc:1
!>08:36:04 ---------------------------------------------------------------

Yes, I could replace ".\..\test.au3" with "..\test.au3" but why ".\test.au3" works?

I'm not sure if this is a bug or behaviour by design :) Is it worth a ticket?

TEST.zip

Link to comment
Share on other sites

  • Developers

I will have a look, but am pretty sure there is no logic for .\ in the function that converts the relative path to the absolute path. Seems like you are the first one using it in all those years. 

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers
3 hours ago, supersonic said:

I'm not sure if this is a bug or behaviour by design :) Is it worth a ticket?

TEST.zip

Check the current beta version of Au3Stripper which should fix this issue. :)

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...