Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def isInstalledCopy():
return False
winreg.CloseKey(k)
try:
return os.stat(instDir)==os.stat(os.getcwdu())
return os.stat(instDir)==os.stat(os.getcwd())
except WindowsError:
return False

Expand Down
2 changes: 1 addition & 1 deletion source/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def handlePowerStatusChange(self):
if not wxLang and '_' in lang:
wxLang=locale.FindLanguageInfo(lang.split('_')[0])
if hasattr(sys,'frozen'):
locale.AddCatalogLookupPathPrefix(os.path.join(os.getcwdu(),"locale"))
locale.AddCatalogLookupPathPrefix(os.path.join(os.getcwd(),"locale"))
# #8064: Wx might know the language, but may not actually contain a translation database for that language.
# If we try to initialize this language, wx will show a warning dialog.
# #9089: some languages (such as Aragonese) do not have language info, causing language getter to fail.
Expand Down
2 changes: 1 addition & 1 deletion source/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
updateCheck = None

### Constants
NVDA_PATH = os.getcwdu()
NVDA_PATH = os.getcwd()
ICON_PATH=os.path.join(NVDA_PATH, "images", "nvda.ico")
DONATE_URL = "http://www.nvaccess.org/donate/"

Expand Down
2 changes: 1 addition & 1 deletion source/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def getDocFilePath(fileName,installDir):
return tryPath

def copyProgramFiles(destPath):
sourcePath=os.getcwdu()
sourcePath=os.getcwd()
detectUserConfig=True
detectNVDAExe=True
for curSourceDir,subDirs,files in os.walk(sourcePath):
Expand Down
2 changes: 1 addition & 1 deletion source/updateCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _executeUpdate(destPath):
if config.isInstalledCopy():
executeParams = u"--install -m"
else:
portablePath = os.getcwdu()
portablePath = os.getcwd()
if os.access(portablePath, os.W_OK):
executeParams = u'--create-portable --portable-path "{portablePath}" --config-path "{configPath}" -m'.format(
portablePath=portablePath,
Expand Down