From eb994750aa28af567add7156fbd0e4daff1de584 Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Fri, 25 Oct 2019 14:31:53 -0400 Subject: [PATCH] Minor: remove unnecessary call to os.path.join in make_seed_mech --- rmgpy/rmg/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmgpy/rmg/main.py b/rmgpy/rmg/main.py index dccecdbce5..95466318a8 100644 --- a/rmgpy/rmg/main.py +++ b/rmgpy/rmg/main.py @@ -1269,7 +1269,7 @@ def make_seed_mech(self, first_time=False): shutil.rmtree(seed_dir) else: # This is a seed from the previous iteration. Move it to a temporary directory in case we run into errors try: - os.rename(seed_dir, os.path.join(temp_seed_dir)) + os.rename(seed_dir, temp_seed_dir) except PermissionError: # The Windows Subsystem for Linux (WSL) can have problems with renaming # Try copying over the files instead. Unfortunately, this takes more time if os.path.exists(temp_seed_dir): # First, delete the contents of the old folder if it exists