From 9dbe99d641ef016031949a3fa22f32d5900000ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Thu, 29 Mar 2018 06:47:15 +0000 Subject: [PATCH] fix cross-device link error git-svn-id: http://svn.code.sf.net/p/pyx/code/trunk/pyx@3686 a4f5e268-e194-4f32-bce1-d30804cbbcc5 --- pyx/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyx/text.py b/pyx/text.py index f468a41b..c2dd33b4 100644 --- a/pyx/text.py +++ b/pyx/text.py @@ -1037,7 +1037,7 @@ class SingleRunner: for usefile in self.usefiles: extpos = usefile.rfind(".") try: - os.rename(os.path.join(self.tmpdir, "texput" + usefile[extpos:]), usefile) + shutil.move(os.path.join(self.tmpdir, "texput" + usefile[extpos:]), usefile) except EnvironmentError: logger.warning("Could not save '{}'.".format(usefile)) if os.path.isfile(usefile): -- 2.11.4.GIT