mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update setup.py
This commit is contained in:
6
setup.py
6
setup.py
@ -8,6 +8,7 @@ import os
|
||||
import re
|
||||
import shutil
|
||||
import warnings
|
||||
import platform
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@ -31,7 +32,10 @@ def install_file(source_filename, dest_filename):
|
||||
|
||||
def install_system_files():
|
||||
setup_path = os.path.dirname(__file__)
|
||||
data_path = os.path.join(setup_path, "builder/data")
|
||||
if platform.machine().startswith('arm'):
|
||||
data_path = os.path.join(setup_path, "builder/data/32bit")
|
||||
elif platform.machine().startswith('aarch'):
|
||||
data_path = os.path.join(setup_path, "builder/data/64bit")
|
||||
|
||||
for source_filename in glob.glob("%s/**" % data_path, recursive=True):
|
||||
if os.path.isfile(source_filename):
|
||||
|
Reference in New Issue
Block a user