r/PythonProjects2 • u/BSmith156 • Aug 29 '20
[P] Hard I made a Python application to view n-dimensional hypercubes!
So this is the first Python project I’v ever released to the public. It’s an application to view and rotate different hypercubes, any feedback is much appreciated!
1
u/Grorco Moderator Sep 17 '20
Hi, sorry this is way after the fact and you may have already moved on, but was just looking at your code and wanted to make a couple small suggestions about your fix.
First is never use an open ended exception if possible. It can lead to massive headaches if something unexpected is going wrong in the code block. Second, you should trt to use try/except blocks when bringing in any outside resource, it's a fairly common problem, especially if a user accidentally moves/deletes a file.
The last thing is about a potential fix, though I'm not positive. Try using pathlib.Path() to set the correct format for directory strings based on the OS. For example.
from pathlib import Path()
MyFile = Path("path/to/file.name")
0
2
u/navinfeb15 Aug 29 '20
First Python project ?? Looks cool dude. Keep it going