Skip to content

Commit

Permalink
Merge pull request #6 from lr222gw/feature_AddLibraries
Browse files Browse the repository at this point in the history
Feature add libraries
  • Loading branch information
lr222gw authored Feb 19, 2024
2 parents d4be3fd + 71f51b7 commit 049f377
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions cpppc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
app = QApplication([])
app.setStyleSheet("QPushButton { color: magenta; }")

palette = app.palette()

# Set dark color palette
palette.setColor(app.palette().Window, QColor(30, 30, 30))
palette.setColor(app.palette().WindowText, QColor(200, 200, 200))
palette.setColor(app.palette().Button, QColor(50, 50, 50))
palette.setColor(app.palette().ButtonText, QColor(200, 200, 200))


app.setPalette(palette)


# Preparing Window
window = QWidget()
rootLayout = QHBoxLayout()
Expand Down
4 changes: 2 additions & 2 deletions src/fetchers/Fetcher_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def _extractToDirectory(libname :str,targetPath :str, zipFile : ZipFile):

libraryFiles=glob.glob(tempdirFiles, include_hidden=True)
if not os.path.exists(finalpath):
os.mkdir(finalpath)
pathlib.Path(finalpath).mkdir(parents=True,exist_ok=True)
else:
shutil.rmtree(finalpath)
os.mkdir(finalpath)
pathlib.Path(finalpath).mkdir(parents=True,exist_ok=True)

for file in libraryFiles:
shutil.move(file, targetPath+"/"+libname+"/")
Expand Down

0 comments on commit 049f377

Please sign in to comment.