소스 검색

Add missing import

missionfloyd 4 년 전
부모
커밋
8e8a9f235d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      RaspberryPi_JetsonNano/python/setup.py

+ 3 - 3
RaspberryPi_JetsonNano/python/setup.py

@@ -1,12 +1,12 @@
-import sys
+import sys, os
 from setuptools import setup
 
 dependencies = ['Pillow', 'numpy']
 
 if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'):
-    dependencies.extend(['RPi.GPIO', 'spidev'])
+    dependencies += ['RPi.GPIO', 'spidev']
 else:
-    dependencies.extend(['Jetson.GPIO', 'smbus'])
+    dependencies += ['Jetson.GPIO', 'smbus']
 
 setup(
     name='waveshare-epd',