[prev in list] [next in list] [prev in thread] [next in thread] 

List:       klik-devel
Subject:    [klik-devel] [klikclient commit] r1611 -
From:       codesite-noreply () google ! com
Date:       2008-07-08 14:25:27
Message-ID: 0016e6460262ac70c8045183f6be () google ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic