# HG changeset patch # User lbessard # Date 1214840308 -7200 # Node ID be969d4694c725a005cb090129b6519181cf3392 # Parent 48ba1ae12ffd3e90da88efbc2ccb2d258f884e66 Bug with folder path ending by '/' or '\' fixed diff -r 48ba1ae12ffd -r be969d4694c7 plugger.py --- a/plugger.py Mon Jun 30 17:04:25 2008 +0200 +++ b/plugger.py Mon Jun 30 17:38:28 2008 +0200 @@ -774,6 +774,8 @@ Load a project contained in a folder @param ProjectPath: path of the project folder """ + if os.path.basename(ProjectPath) == "": + ProjectPath = os.path.dirname(ProjectPath) # Verify that project contains a PLCOpen program plc_file = os.path.join(ProjectPath, "plc.xml") if not os.path.isfile(plc_file):