Fix directory not opening

This commit is contained in:
2024-02-29 17:24:13 +01:00
parent 6a95da11c0
commit 1f2d363e91
2 changed files with 13 additions and 1 deletions

12
.idea/discord.xml generated Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="PROJECT_FILES" />
<option name="description" value="Viral Factory is a highly modular gradio app that automates the production of various forms of social media content." />
<option name="theme" value="material" />
<option name="button1Title" value="View code" />
<option name="button1Url" value="https://github.com/Paillat-dev/viralfactory" />
<option name="button2Title" value="" />
<option name="button2Url" value="" />
</component>
</project>

View File

@@ -193,6 +193,6 @@ class GenerationContext:
self.progress(1, "Done!")
if os.name == 'nt':
os.system(f"start {self.dir}")
os.system(f"start {os.path.abspath(self.dir)}")
else:
os.system(f"open {self.dir}")