Skip to content

Commit

Permalink
Detect if the installer is being run from an excessively long path on…
Browse files Browse the repository at this point in the history
… Windows, as that can cause the install to fail.

Tell user to move the installer to a shorter path.
  • Loading branch information
drojf committed May 26, 2019
1 parent 3d1a881 commit 8e93e41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
common.Globals.getBuildInfo()
print("Installer Build Information:")
print(common.Globals.BUILD_INFO)
print("Installer is being run from: [{}]".format(os.getcwd()))

if common.Globals.IS_WINDOWS and len(os.getcwd()) > 100:
print("\n\n---------------------------------------------------------------------------------")
print("ERROR: The path you are running the installer from is too long!")
print("It is currently {} characters long, but must be less than 100 characters".format(len(os.getcwd())))
print("Please move the installer to a shorter path. The current path is:")
print(os.getcwd())
common.exitWithError()

def check07thModServerConnection():
"""
Expand Down

0 comments on commit 8e93e41

Please sign in to comment.