Closed apelliciari closed 7 years ago
Thanks @apelliciari. I don't have any issues with this, but I am wondering what the circumstances are that require it. Could you elaborate why this is needed for your setup?
In my case, for two reasons:
__file__
and build the project path. In this way i keep it relativeI've done these modifications because my scripts were running correctly in the cli. I know that they aren't really "standalone" scripts, so this can be an edge case
In this way it's available when the file is executed.
Obviously
__file__
will not have the path of the original script uploaded through wooey's addscript, but it allows compatibility if the standalone file is using it. Besides, it provides a way to extract the project path directly from the script