diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-09 15:53:49 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-09 15:53:49 -0500 |
commit | 878dfc95367caea213541ef447b8e89877430d04 (patch) | |
tree | cd7541817c2adba19958ba135cedafaf10d91ef2 | |
parent | fc8cb7ad9cbfd9fb5b9dd0d60eaeb9c1d4b4316b (diff) | |
download | hypervideo-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.py | 5 |
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) |