Closed L0laapk3 closed 4 years ago
I was able to bypass this by rewriting how the Symlink command was written:
def linkDir(src, dest):
print('os.name: {}'.format(os.name))
if os.path.exists(dest) == True:
return
if os.name == 'nt':
cmd = ("MKLINK", "/J", os.path.abspath(src), os.path.abspath(dest))
elif os.name == 'posix':
cmd = "ln -s '{}' '{}'".format(os.path.abspath(src), os.path.abspath(dest))
else:
cmd = ("ln", "-s", os.path.abspath(src), os.path.abspath(dest))
subprocess.check_call(cmd, stdout=subprocess.DEVNULL, shell=True)
Not sure why the else-block's command wasn't working.
Thats something else entirely, thats been fixed as of 548816420043ef8ecf66d983286df01d86448f5c. This issue is about a sub folder inside the script-output folder being a symlink to, for example, a different drive.
This is a workaround, not a complete solution. But since factorio devs don't seem to be changing their mind about this issue anytime soon this will have to do.
If you would like this to work again, please redirect your concerns to this factorio thread:
https://forums.factorio.com/viewtopic.php?f=7&t=68499