File tree 1 file changed +6
-2
lines changed
core/src/main/python/wlsdeploy/util
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -410,9 +410,12 @@ def get_local_filename_from_path(self, path):
410
410
self ._logger .entering (path , class_name = self ._class_name , method_name = _method_name )
411
411
412
412
file_name = None
413
+
414
+ # posixpath.isfile() seems to not work in Jython 2.2.1 even though os.path.isfile() does...
413
415
if not string_utils .is_empty (path ) and \
414
- (not self ._local_path_module .exists (path ) or self . _local_path_module .isfile (path )):
416
+ (not self ._local_path_module .exists (path ) or os . path .isfile (path )):
415
417
__ , file_name = self ._local_path_module .split (path )
418
+ self ._logger .fine ('file_name returned %s' % file_name , class_name = self ._class_name , method_name = _method_name )
416
419
if string_utils .is_empty (file_name ):
417
420
file_name = None
418
421
@@ -444,8 +447,9 @@ def get_local_pathname_from_path(self, path):
444
447
self ._logger .entering (path , class_name = self ._class_name , method_name = _method_name )
445
448
446
449
file_path = None
450
+ # posixpath.isfile() seems to not work in Jython 2.2.1 even though os.path.isfile() does...
447
451
if not string_utils .is_empty (path ) and \
448
- (not self ._local_path_module .exists (path ) or self . _local_path_module .isfile (path )):
452
+ (not self ._local_path_module .exists (path ) or os . path .isfile (path )):
449
453
file_path , __ = self ._local_path_module .split (path )
450
454
if string_utils .is_empty (file_path ):
451
455
file_path = None
You can’t perform that action at this time.
0 commit comments