【发布时间】:2016-06-28 04:46:42
【问题描述】:
所以我想发布我的 python 供人们使用;我想使用 py2exe 将其转换为 .exe。
但是在使用 selenium 时我遇到了问题。
chrome_path = r"C:\Users\Viktor\Desktop\chromedriver.exe"
如果他们没有相同的电脑名称或位于同一位置的文件,那么它当然会出错。 我在想……也许是这样的。
current_folder_name (example C:\Users\example\Desktop\pythonscript)
current_folder_name + "chromedriver.exe"
【问题讨论】:
标签: python python-2.7 python-3.x selenium