Shutil Functions not working in Standalone

Hello everyone :slight_smile:

Got a small issue with my shutil statements in standalone.

There are a number of them but here is an example:

shutil.copyfile(logic.expandPath('//')+'Saves'+'/'+quicksave.bgeconf), logic.expandPath('//')+'ascent_construction.bgeconf')

They work perfectly in embedded but won’t copy files whilst playing in standalone.
No errors are being printed in console.

Anyone know any solutions?

Hello! On my computer this example:

http://www.mediafire.com/download/azod2geiv729ciy/test.rar (copy 1\FloorDiffuse.jpg to 2)

works in embedded and in standalone. Maybe you can try to print os.getcwd() in embedded and in standalone to see if it is the same directory. If it’s not the case, you can work with absolute path instead of relative…

Oops I made a mistake in the link. I correct it. Fixed

Thank you Youle, I got the problem wrong though sorry.

It isn’t shutil at all. It was a thing I already knew about. When in standalone the saveGD names the file differently.
Whereas in embedded it is ascent_construction.bgeconf, in standalone it is ascent_construction.blend~.bgeconf

Silly me…