How to get root of a compiled script?
-
So I compiled a script, and I am using "Path to project directory". This gives me a long path nested in folders from the original .exe, ie:
C:/Users/Administrator/Desktop/CP/appsremote/{ProjectName}/SIDa5fbb57a/engine/project.xml
Are there any baked-in functions to get the root:
C:/Users/Administrator/Desktop/CP/
?
-
@ev0 said in How to get root of a compiled script?:
Are there any baked-in functions to get the root: C:/Users/Administrator/Desktop/CP/?
Yes -
-
@sir-ydroidrrr said in How to get root of a compiled script?:
@ev0 said in How to get root of a compiled script?:
Are there any baked-in functions to get the root: C:/Users/Administrator/Desktop/CP/?
Yes -
Thank you for your response. This function only gives me the path to that xml file, however, when compiled I'm looking for a way to output to the .exe main folder that's generated.
-
@ev0,
-
@GhostZ I'm sorry to say, when compiled, it doesn't appear to work as the highlighted text says:
(I have the "Path to Project Directory" logged in another section as well, ignore the screenshot's exact functionality, just providing context)
-
@ev0, everything works, the screenshots of the compiled script are attached above
@GhostZ said in How to get root of a compiled script?:
-
@GhostZ said in How to get root of a compiled script?:
@ev0, everything works, the screenshots of the compiled script are attached above
@GhostZ said in How to get root of a compiled script?:
So strange, I can't replicate this. Thank you for verifying. I'll continue to try and break things.