Shortened os.path.dirname to pUp

This commit is contained in:
Fierelier 2019-10-25 11:52:19 +02:00
parent b4f07bfe50
commit ad847d7abb
1 changed files with 4 additions and 2 deletions

View File

@ -15,8 +15,10 @@ import webbrowser
import time
import stat
scriptPath = os.path.dirname(os.path.realpath(__file__))
p = os.path.join
pUp = os.path.dirname
scriptPath = pUp(os.path.realpath(__file__))
appPath = False
appName = False
originalAppPath = False
@ -322,7 +324,7 @@ def setupVariables():
raise NameError("Folder not found: " +appPath)
if os.path.isdir(appPath.replace(" - umlOriginal","")): appPath = appPath.replace(" - umlOriginal","")
appName = appPath.replace(os.path.dirname(appPath)+ os.sep,"")
appName = appPath.replace(pUp(appPath)+ os.sep,"")
originalAppPath = appPath + " - umlOriginal"
tmpAppPath = appPath + " - umlTemp"
modPath = p(appPath + " - umlMods")