Skip to content

Commit

Permalink
Minor: remove unnecessary call to os.path.join in make_seed_mech
Browse files Browse the repository at this point in the history
  • Loading branch information
amarkpayne committed Oct 30, 2019
1 parent 5d5da6d commit eb99475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/rmg/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb99475

Please sign in to comment.