Files
CyberPanel/websiteFunctions/tests.py
2022-06-12 12:05:51 +05:00

8 lines
185 B
Python
Executable File

a = "/home/newweb2.com/public_html/newweb2/"
DomainName ="newweb3.com"
abc = a.split("/")
wpexpath = abc[4]
newpath = '/home/%s/public_html/%s' % (DomainName, wpexpath)
print(newpath)