English 中文(简体)
I类类毒素的习俗数据在哪里?
原标题:Where do I store plasmoid s custom data?
最佳回答

我收到了关于:

我认为,你可以使用KStandardDirs,在用户中创建名录,具体应用方式(我建议为此使用“数据”。

因此,我的法典现在看着这一点:

    def getDataPath(self, *parts):
        main_dir = str(KStandardDirs.locateLocal("data", "gcal-agenda"))
        dirs = [main_dir] + list(parts)
        return os.path.join(*dirs)

“gcal- agenda”是我等离子体的名称。

问题回答

暂无回答




相关问题
How do I create keyboard shortcuts programmatically in KDE?

I am able to create keyboard shortcuts for Ctrl-F1 and Ctrl-F2, making them launch a script, using the Control Center interface, Input Actions section. The platform of interest is KDE 3.5 on CentOS 5 ...

KDE contribution [closed]

Does it make any sense to contribute to KDE lately, now that all that s "cool" is being moved in the cloud? It seems like these guys are in need of some contributors and I was wondering whether it s ...

What Linux Full Text Indexing Tool Has A Good C++ API?

I m looking to add full text indexing to a Linux desktop application written in C++. I am thinking that the easiest way to do this would be to call an existing library or utility. This article reviews ...

热门标签