예제 #1
0
def storeCurrentConfiguration():
    global userProfile
    folder = os.path.join(QgsApplication.qgisSettingsDirPath(), 'profiles')
    filepath = os.path.join(folder, 'profile%s.json' % str(time.time()))
    name = time.strftime("%b %d %Y %H:%M:%S", time.gmtime(time.time()))
    description = "This profile was created based on your QGIS configuration at %s" % name
    if not os.path.exists(folder):
        os.mkdir(folder)
    saveCurrentStatus(filepath, name, description=description)
예제 #2
0
def storeCurrentConfiguration():
    global userProfile
    folder = os.path.join(QgsApplication.qgisSettingsDirPath(), 'profiles')
    filepath = os.path.join(folder, 'profile%s.json' % str(time.time()))
    name = time.strftime("%b %d %Y %H:%M:%S", time.gmtime(time.time()))
    description = "This profile was created based on your QGIS configuration at %s" % name
    if not os.path.exists(folder):
        os.mkdir(folder)
    saveCurrentStatus(filepath, name, description=description)
def _savePreviousState():
    global previousStateFilename
    previousStateFilename = tempFilename("json")
    saveCurrentStatus(previousStateFilename, "temp")
예제 #4
0
def _savePreviousState():
    global previousStateFilename
    previousStateFilename = tempFilename("json")
    saveCurrentStatus(previousStateFilename, "temp")