From: Kimmo Varis Date: Tue, 4 Mar 2008 20:00:13 +0000 (+0000) Subject: BuildScript: Expand relative release folder path to absolute path for use. X-Git-Tag: 2.16.5~3509 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8482eb27d7b34408ea7f5e1451f5e0f10ca171ad;p=winmerge-jp%2Fwinmerge-jp.git BuildScript: Expand relative release folder path to absolute path for use. --- diff --git a/Tools/Scripts/create_release.py b/Tools/Scripts/create_release.py index 9f1dcc6ca..98ad70968 100644 --- a/Tools/Scripts/create_release.py +++ b/Tools/Scripts/create_release.py @@ -1,6 +1,6 @@ # # The MIT License -# Copyright (c) 2007 Kimmo Varis +# Copyright (c) 2007-2008 Kimmo Varis # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, including @@ -142,7 +142,8 @@ def get_and_create_dist_folder(folder): """Formats a folder name for version-specific distribution folder and creates the folder.""" - dist_folder = os.path.join(dist_root_folder, folder) + abs_folder = os.path.realpath(dist_root_folder) + dist_folder = os.path.join(abs_folder, folder) if os.path.exists(dist_folder): print 'Folder: ' + dist_folder + ' already exists!' print 'If you want to re-create this version, remove folder first!'