Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import subprocess
|
|
5 |
folder_path = 'src/server'
|
6 |
file_name = 'main.cs'
|
7 |
file_path = os.path.join(folder_path, file_name)
|
|
|
8 |
open('roblox-cs.yml', """SourceFolder: src
|
9 |
OutputFolder: dist
|
10 |
EmitNativeAttributeOnClassOrNamespaceCallbacks: true
|
@@ -18,8 +19,6 @@ CSharpOptions:
|
|
18 |
|
19 |
def compile(cs):
|
20 |
# Create file
|
21 |
-
os.makedirs(folder_path, exist_ok=True)
|
22 |
-
|
23 |
with open(file_path, 'w') as file:
|
24 |
file.write(cs)
|
25 |
|
|
|
5 |
folder_path = 'src/server'
|
6 |
file_name = 'main.cs'
|
7 |
file_path = os.path.join(folder_path, file_name)
|
8 |
+
os.makedirs(folder_path, exist_ok=True)
|
9 |
open('roblox-cs.yml', """SourceFolder: src
|
10 |
OutputFolder: dist
|
11 |
EmitNativeAttributeOnClassOrNamespaceCallbacks: true
|
|
|
19 |
|
20 |
def compile(cs):
|
21 |
# Create file
|
|
|
|
|
22 |
with open(file_path, 'w') as file:
|
23 |
file.write(cs)
|
24 |
|