Esempio n. 1
0
def relname(fname):  # c:\ProteoWizard\pwiz\foo\bar\baz
    if ac.contains_pwizroot(fname):
        return ac.replace_pwizroot(fname,
                                   relroot)  # $(ProjectDir)\..\foo\bar\baz
    if fname.startswith("\\"):
        return relroot + fname
    return relroot + "\\" + fname
Esempio n. 2
0
def absname(infname) :
	fname = infname.replace("$(ProjectDir)..",ac.get_pwizroot())
	if ac.contains_pwizroot(fname) :
		return fname
	else :
		return "%s\\%s"%(ac.get_pwizroot(),fname)
Esempio n. 3
0
def relname(fname) : # c:\ProteoWizard\pwiz\foo\bar\baz
	if ac.contains_pwizroot(fname) :
		return ac.replace_pwizroot(fname,relroot) # $(ProjectDir)\..\foo\bar\baz
	if fname.startswith("\\") :
		return relroot+fname
	return relroot+"\\"+fname
Esempio n. 4
0
def absname(infname):
    fname = infname.replace("$(ProjectDir)..", ac.get_pwizroot())
    if ac.contains_pwizroot(fname):
        return fname
    else:
        return "%s\\%s" % (ac.get_pwizroot(), fname)