Changed ['PartsLibrary.FCMacro']
This commit is contained in:
parent
88581c5240
commit
4e7fbf405c
1 changed files with 4 additions and 6 deletions
|
@ -243,10 +243,10 @@ class ExpDockWidget(QtGui.QDockWidget):
|
||||||
Mesh.export(toexport,STLfilename)
|
Mesh.export(toexport,STLfilename)
|
||||||
|
|
||||||
def pushlibrary(self):
|
def pushlibrary(self):
|
||||||
modified_files = repo.git.diff("--name-only").split("\n")
|
modified_files = [f for f in repo.git.diff("--name-only").split("\n") if f]
|
||||||
print(repo.git.diff("--name-only"))
|
#print(modified_files)
|
||||||
untracked_files = repo.git.ls_files("--other","--exclude-standard").split("\n")
|
untracked_files = [f for f in repo.git.ls_files("--other","--exclude-standard").split("\n") if f]
|
||||||
print(repo.git.ls_files("--other","--exclude-standard"))
|
#print(untracked_files)
|
||||||
import ArchServer
|
import ArchServer
|
||||||
d = ArchServer._ArchGitDialog()
|
d = ArchServer._ArchGitDialog()
|
||||||
d.label.setText(str(len(modified_files)+len(untracked_files))+" new and modified file(s)")
|
d.label.setText(str(len(modified_files)+len(untracked_files))+" new and modified file(s)")
|
||||||
|
@ -257,8 +257,6 @@ class ExpDockWidget(QtGui.QDockWidget):
|
||||||
r = d.exec_()
|
r = d.exec_()
|
||||||
if r:
|
if r:
|
||||||
for o in modified_files + untracked_files:
|
for o in modified_files + untracked_files:
|
||||||
print(o)
|
|
||||||
print(type(o))
|
|
||||||
repo.git.add(o)
|
repo.git.add(o)
|
||||||
repo.git.commit(m=d.lineEdit.text())
|
repo.git.commit(m=d.lineEdit.text())
|
||||||
if d.checkBox.isChecked():
|
if d.checkBox.isChecked():
|
||||||
|
|
Loading…
Add table
Reference in a new issue