| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,4 +91,7 @@ ENV/ | |||
| 91 | 91 | Binaries/ | |
| 92 | 92 | ||
| 93 | 93 | #don't update this file again | |
| 94 | - Content/Scripts/upyconfig.json | ||
| 94 | + Content/Scripts/upyconfig.json | ||
| 95 | + python35/ | ||
| 96 | + python27/ | ||
| 97 | + *.un~ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,6 @@ | |||
| 1 | + Roberto De Ioris (maintainer and developer, 20Tab) | ||
| 2 | + Ikrima Elhassan (developer and sponsor, Kite & Lightning) | ||
| 1 | 3 | Tony Barbieri | |
| 2 | 4 | Huey Park | |
| 3 | 5 | Eric Feng | |
| 6 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ | |||
| 2 | 2 | import unreal_engine as ue | |
| 3 | 3 | import json | |
| 4 | 4 | import upycmd as cmd | |
| 5 | + import os | ||
| 5 | 6 | from os import listdir | |
| 6 | 7 | from os import path as ospath | |
| 7 | 8 | ||
@@ -12,6 +13,14 @@ def checkPipDirectory(): | |||
| 12 | 13 | configPath = cmd.PythonPluginScriptPath() + '/upyconfig.json' | |
| 13 | 14 | correctPipPath = cmd.PythonHomeScriptsPath() | |
| 14 | 15 | ||
| 16 | + #check that we have a config file, if not make an empty one | ||
| 17 | + if not (os.path.exists(configPath)): | ||
| 18 | + with open(configPath, "w+") as configFile: | ||
| 19 | + configs = {} | ||
| 20 | + configs['pipDirectoryPath'] = "" | ||
| 21 | + configFile.seek(0) | ||
| 22 | + configFile.write(json.dumps(configs)) | ||
| 23 | + | ||
| 15 | 24 | #compare our current pip directory with the installed one, if they differ reinstall pip | |
| 16 | 25 | ||
| 17 | 26 | with open(configPath, "r+") as configFile: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments