My Python manuals tell me that if file name is used, it is assumed to be in the same folder as the current Python program.
If I try that in Alibre Script (saving my text file in the Alibre Script Library along with the Script), I get complaint that the file can't be found in C:\Program Files\Alibre Design\Program.
I can easily get around this by specifying the full absolute file path in my script. This means that I'll have to tell anyone I pass the script to to edit the path in the script - rather than tell them to juts make sure to put the text file in the same folder as the script.
Am I missing something obvious, or does Alibre Script just work a bit differently from how my Python manuals suggest?
If I try that in Alibre Script (saving my text file in the Alibre Script Library along with the Script), I get complaint that the file can't be found in C:\Program Files\Alibre Design\Program.
I can easily get around this by specifying the full absolute file path in my script. This means that I'll have to tell anyone I pass the script to to edit the path in the script - rather than tell them to juts make sure to put the text file in the same folder as the script.
Am I missing something obvious, or does Alibre Script just work a bit differently from how my Python manuals suggest?