Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Fix bugged path joining with copy_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Jul 5, 2020
1 parent cb26ad0 commit 83269bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#! py -3

from os.path import dirname, exists, basename, join as path_join
from subprocess import call, check_output
from argparse import ArgumentParser
from os.path import dirname, exists
from os.path import join as path_join
from shutil import rmtree, copyfile
from os import remove, makedirs
from glob import glob
Expand Down Expand Up @@ -92,7 +91,7 @@ def copy_file(from_file, to_file):

def copy_dir(from_dir, to_dir):
for file in glob(path_join(from_dir, "*.*")):
copy_file(file, path_join(BIN_PATH, file))
copy_file(file, path_join(to_dir, basename(file)))


def create_directory(directory):
Expand Down

0 comments on commit 83269bb

Please sign in to comment.