Author: lionel.tricon Date: Tue Jul 8 07:24:43 2008 New Revision: 1611 Modified: trunk/client/trunk/klikclient/lib/klik/create.py Log: Issue 263 : when the target file is given absolute (not prefixed by a path), os.path.dirname() returns nothing. Thus, the output file was /copy (1) of lbreakout2_2.5.2-2.1p2_bis.cmg instead of /home/lionel/Desktop/copy (1) of lbreakout2_2.5.2-2.1p2_bis.cmg Modified: trunk/client/trunk/klikclient/lib/klik/create.py ============================================================================== --- trunk/client/trunk/klikclient/lib/klik/create.py (original) +++ trunk/client/trunk/klikclient/lib/klik/create.py Tue Jul 8 07:24:43 2008 @@ -336,6 +336,8 @@ # Files exists create unique name instead basename = os.path.basename(app_path) basepath = os.path.dirname(app_path) + if basepath=="": + basepath = os.getcwd() # find number of files already present number = 1 #len(su.ffind(basepath, shellglobs=("*%s", basename ))) # over kill this will count every file below ~/Desktop _______________________________________________ klik-devel mailing list klik-devel@kde.org https://mail.kde.org/mailman/listinfo/klik-devel