Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Update ftp_publish_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jan 6, 2019
1 parent 8d52963 commit 7ebb413
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/ensae_teaching_cs/automation/ftp_publish_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,13 @@ def publish_teachings_to_web(login, ftpsite="ftp.xavierdupre.fr", google_id=None
else:
continue

local = root.replace("\\build", "\\build3")
local = root.replace("\\build", "\\build3").replace("\\html", "\\html3")
fLOG("[ensae_teaching_cs] checking folder '{0}'".format(local))
fLOG("[ensae_teaching_cs] root is '{0}'".format(root))
if os.path.exists(local):
fLOG("[ensae_teaching_cs] found '{0}'".format(local))
project = dict(status_file=os.path.join(folder_status, "status_3_%s.txt" % module),
local=local,
root_local=root.replace("\\build", "\\build3"),
local=local, root_local=local,
root_web=(rootw % (module, lay[1])).replace("_no_clean", "").replace("/helpsphinx", "/helpsphinx3"))
projects.append(project)
else:
Expand Down Expand Up @@ -347,9 +347,11 @@ def publish_teachings_to_web(login, ftpsite="ftp.xavierdupre.fr", google_id=None
else:
continue

local = root.replace("\\build", "\\build2").replace("\\dist", "\\dist2")
fLOG("[python3_module_template] ADD '{0}'".format(local))
fLOG("[python3_module_template] root is '{0}'".format(root))
project = dict(status_file=os.path.join(folder_status, "status_2_%s.txt" % module),
local=root.replace("\\build", "\\build2"),
root_local=root.replace("\\build", "\\build2"),
local=local, root_local=local,
root_web=(rootw % (module, lay[1])).replace("_no_clean", "").replace("/helpsphinx", "/helpsphinx2"))
projects.append(project)

Expand Down

0 comments on commit 7ebb413

Please sign in to comment.