7258: incomplete commit; https://gramps-project.org/bugs/view.php?id=7258#c35856
This commit is contained in:
parent
b4de594aab
commit
8e5224708c
@ -64,7 +64,7 @@ else:
|
|||||||
UNITYPE = str
|
UNITYPE = str
|
||||||
cuni = conv_to_unicode_direct
|
cuni = conv_to_unicode_direct
|
||||||
def conv_to_unicode(x, y='utf8'):
|
def conv_to_unicode(x, y='utf8'):
|
||||||
return x if x is None or isinstance(x, UNITYPE) else cuni(x, y)
|
return x if x is None or isinstance(x, UNITYPE) else cuni(x, y) if y else cuni(x)
|
||||||
|
|
||||||
def uni_to_gui(x):
|
def uni_to_gui(x):
|
||||||
'''
|
'''
|
||||||
@ -205,7 +205,7 @@ def get_curr_dir():
|
|||||||
an arbitrary unicode character in a path. This function uses the
|
an arbitrary unicode character in a path. This function uses the
|
||||||
native GetCurrentDirectory function to return a unicode cwd.
|
native GetCurrentDirectory function to return a unicode cwd.
|
||||||
'''
|
'''
|
||||||
if not sys.version_info[0] < 3 and win():
|
if not (sys.version_info[0] < 3 and win()):
|
||||||
return os.getcwd()
|
return os.getcwd()
|
||||||
|
|
||||||
n = ctypes.windll.kernel32.GetCurrentDirectoryW(0, None)
|
n = ctypes.windll.kernel32.GetCurrentDirectoryW(0, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user