Commits

ryanpetrello committed 63599c9

Fix a path comparison bug, including support for Windows.

Comments (0)

Files changed (1)

 #     parameters makes the final installed distribution contain the absolute
 #     package source location information and not include some other meta-data
 #     package information as well.
-script_folder = os.path.abspath(os.path.dirname(__file__))
-current_folder = os.path.abspath(os.getcwd())
-if not os.path.samefile(script_folder, current_folder):
+script_folder = os.path.realpath(os.path.dirname(__file__))
+current_folder = os.path.realpath(os.getcwd())
+if script_folder != current_folder:
     print("ERROR: Suds library setup script needs to be run from the folder "
         "containing it.")
     print()