beremiz

be969d4694c7
Parents 48ba1ae12ffd
Children 5b1fa0e06284
Bug with folder path ending by '/' or '\' fixed
  • +2 -0
    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):