[game-data-packager] 01/01: handle D:\Steam users
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Fri Oct 2 05:42:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit 71014fdd409fdf6dc04f2843c0697eb77700b569
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Fri Oct 2 07:40:22 2015 +0200
handle D:\Steam users
having C:\ on a SSD + D:\Steam on a HDD seems to be a common setup.
(like having / on SSD + /home & /var on HDD)
---
game_data_packager/build.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 1ae9079..1d3904e 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -316,8 +316,13 @@ def iter_fat_mounts(folder):
with open('/proc/mounts', 'r', encoding='utf8') as mounts:
for line in mounts.readlines():
mount, type = line.split(' ')[1:3]
- if type in ('fat','vfat', 'ntfs'):
- yield os.path.join(mount, 'Program Files', folder)
+ if type in ('fat', 'vfat', 'ntfs'):
+ path = os.path.join(mount, 'Program Files', folder)
+ if os.path.isdir(path):
+ yield path
+ path = os.path.join(mount, folder)
+ if os.path.isdir(path):
+ yield path
class PackagingTask(object):
def __init__(self, game):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list