Shortened os.path.dirname to pUp
This commit is contained in:
parent
b4f07bfe50
commit
ad847d7abb
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue