Mailinglist Archive: opensuse-buildservice (262 mails)

< Previous Next >
Re: [opensuse-buildservice] [osc] patch to support overlay filesystem - RFC
  • From: Luke Imhoff <luke@xxxxxxxx>
  • Date: Fri, 14 Aug 2009 11:21:05 -0500
  • Message-id: <4A858EF1.6070403@xxxxxxxx>
You need to do the expansions and abspathing before checking if it's a directory as stuff like '~' will return False from isdir.

Jan-Simon Möller wrote:
Am Freitag 14 August 2009 17:54:42 schrieb Luke Imhoff:
For the paths, before passing to os.path.abspath, you probably want to
run it through the expansion os.path.expanduser() to cover ~/foo and
os.path.expandvars() to cover $DIR/foo. It's one of the annoyances of
os.path that user and environment variable expansion aren't built into
abspath.

New version of build.py

Best,
Jan-Simon



--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups