Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 095951e

Browse files
author
hyj
committedApr 18, 2018
make config abs path
1 parent f196f80 commit 095951e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from PyInstaller import __main__ as PyInstallerMain
44

55
if __name__ == "__main__":
6-
configPath=os.path.join(os.path.dirname(sys.argv[0]), "config.ini")
7-
configPlacePyFile = os.path.join(os.path.dirname(sys.argv[0]), "config_place.py")
6+
configPath=os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "config.ini")
7+
configPlacePyFile = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "config_place.py")
88
f = open(configPlacePyFile, "w")
99
f.write("configFilePath=\"" + configPath + "\"")
1010
f.close()

0 commit comments

Comments
 (0)
Please sign in to comment.