mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
17 lines
294 B
Python
Executable File
17 lines
294 B
Python
Executable File
a = "/home/folderhabitk.ml/public_html/subfile/"
|
|
DomainName ="newweb3.com"
|
|
abc = a.split("/")
|
|
wpexpath = abc[4]
|
|
|
|
|
|
b=a.rstrip('/')
|
|
c= b.rstrip(wpexpath)
|
|
newpath = '/home/%s/public_html/%s' % (DomainName, wpexpath)
|
|
|
|
if wpexpath != "":
|
|
home = "0"
|
|
else:
|
|
home = "1"
|
|
print(wpexpath)
|
|
print(c)
|