|
[-]
[+]
|
Changed |
_service:tar_git:harbour-stopmotion-0.4.2.tar.bz2/qml/pages/PythonHandler.qml
^
|
@@ -30,6 +30,12 @@
addImportPath(Qt.resolvedUrl('../py'));
importModule('videox', function () {});
+ setHandler('createSaveFolder', function() {
+ py.createSaveFolder()
+ });
+
+ createSaveFolder()
+
// Handlers do something to QML with received infos from Pythonfile (=pyotherside.send)
setHandler('homePathFolder', function( homeDir ) {
tempMediaFolderPath = homeDir + "/.cache/de.poetaster/stopmotion/"
@@ -191,6 +197,9 @@
function getHomePath() {
call("videox.getHomePath", [])
}
+ function createSaveFolder() {
+ call("videox.createSaveFolder", [])
+ }
function createTmpAndSaveFolder() {
call("videox.createTmpAndSaveFolder", [ tempMediaFolderPath, saveMediaFolderPath ])
}
|
@@ -24,6 +24,12 @@
homeDir = str(Path.home())
pyotherside.send('homePathFolder', homeDir )
+def createSaveFolder ():
+ savePath = str(Path.home()) + "/Pictures/Stopmotion"
+ if not os.path.exists( savePath ):
+ os.makedirs( savePath )
+ pyotherside.send('folderExistence', )
+
def createTmpAndSaveFolder ( tempMediaFolderPath, saveAudioFolderPath ):
if not os.path.exists( "/"+tempMediaFolderPath ):
os.makedirs( "/"+tempMediaFolderPath )
|