aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-12-09 15:53:49 -0500
committerJesús <heckyel@hyperbola.info>2019-12-09 15:53:49 -0500
commit878dfc95367caea213541ef447b8e89877430d04 (patch)
treecd7541817c2adba19958ba135cedafaf10d91ef2
parentfc8cb7ad9cbfd9fb5b9dd0d60eaeb9c1d4b4316b (diff)
downloadhypervideo-gui-878dfc95367caea213541ef447b8e89877430d04.tar.lz
hypervideo-gui-878dfc95367caea213541ef447b8e89877430d04.tar.xz
hypervideo-gui-878dfc95367caea213541ef447b8e89877430d04.zip
change default directory to '/tmp/hypervideo-gui/'
-rw-r--r--hypervideo_gui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/hypervideo_gui.py b/hypervideo_gui.py
index 3c9c009..7cf176a 100644
--- a/hypervideo_gui.py
+++ b/hypervideo_gui.py
@@ -394,7 +394,10 @@ def get_default_download_path():
#From: https://stackoverflow.com/questions/35851281/python-finding-the-users-downloads-folder
"""
if os.name == 'posix':
- return os.path.join(os.path.expanduser('~'), 'Downloads')
+ dpath = '/tmp/hypervideo-gui/'
+ if not os.path.exists(dpath):
+ os.makedirs(dpath)
+ return os.path.join(dpath)
if __name__ == '__main__':
app = QApplication(sys.argv)